This should work too: make drivers/net/your_driver.s --Vamsi -- Vamsi Krishna S. Linux Technology Center, IBM Software Lab, Bangalore. Ph: +91 80 5044959 Internet: vamsi@in.ibm.com On Wed, Jul 17, 2002 at 03:39:04PM +0300, Muli Ben-Yehuda wrote: > 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/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/