Re: Creating assembly code of kernel code

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

 



On Wed, Jul 17, 2002 at 03:36:57PM +0200, Gilad wrote:
> Hi,
> I have a driver whose source lies in a single file in
> /usr/src/linux/drivers/net.
> I want to see the assembly code this driver is compiled into.
> 
> I've done this before, in a kernel a module, by adding a line to the
> Makefile
> with the proper flags.
> 
> In the kernel though, the Makefiles aren't as simple.
> 
> How would I do this for my driver ?

Easiest (but dirty) way? Build your driver the regular way, but save
the log output. Find the gcc command line for your driver, and
substitute the '-c foo.c' with '-S foo.c'. The paste that line in a
terminal, when you're in your driver's directory. The result should be
the asm file for your driver. 

Hope this helps. 
-- 
http://vipe.technion.ac.il/~mulix/
http://syscalltrack.sf.net/

Attachment: pgp00132.pgp
Description: PGP signature


[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