Re: How to see the preprocessed output of a module source file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 2, 2015 at 2:02 PM, Shiyao Ma <i@xxxxxxxxx> wrote:
> Hi,
>
>
> Say I am writing a module. Instead of directly compile it into a ko file,
> I'd like to see the preprocessed output of that file, similarly the way it's
> done in gcc -E.

Use make V=1 path/to/your/module.ko

and see the exact gcc command line used to compile the module. Replace
-c with -E :).

thanks,
Daniel.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux