This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: output assembly?


Luuk:


Gcc's -S will produce assembly language.  Likewise, you can compile
with -c and -g, then run objdump --source on the object file.

I tend to prefer the latter.


b.g.

On Mon, Apr 29, 2002 at 02:42:52PM +0200, Luuk Mettes wrote:
> Hi 
> 
> Is it possible to get assembly output? i tried the -c options, it works on
> normal programs but not on the kernel
> 
> here is the makefile. I added -c and -save-temps to HOSTCFLAGS but it
> doesn't work.
> 
> VERSION = 2
> PATCHLEVEL = 2
> SUBLEVEL = 10
> EXTRAVERSION =
> 
> ARCH := m68k
> 
> .EXPORT_ALL_VARIABLES:
> 
> CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
> 	  else if [ -x /bin/bash ]; then echo /bin/bash; \
> 	  else echo sh; fi ; fi)
> TOPDIR	:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
> 
> HPATH   	= $(TOPDIR)/include
> FINDHPATH	= $(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi $(HPATH)/net
> 
> HOSTCC  	=gcc
> HOSTCFLAGS	=-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c
> -save-temps
> 
> CROSS_COMPILE 	=m68k-linux-
> 
> AS	=$(CROSS_COMPILE)as
> LD	=$(CROSS_COMPILE)ld
> CC	=$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)
> CPP	=$(CC) -E
> AR	=$(CROSS_COMPILE)ar
> NM	=$(CROSS_COMPILE)nm
> STRIP	=$(CROSS_COMPILE)strip
> OBJDUMP	=$(CROSS_COMPILE)objdump
> MAKE	=make
> GENKSYMS=/sbin/genksyms
> 
> -------------------------------------
> 
> thx,
> 
> Luuk Mettes
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
> 

-- 
Bill Gatliff
bgat@billgatliff.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]