gcc assembler output

Stefan Petters petters@lpr.e-technik.tu-muenchen.de
Thu Aug 24 01:58:00 GMT 2000

Hi Christian,

Christian Robl wrote:
> Well why not using "0x" or "$" prepending adresses and "#" for immediates, it
> just has to be possible, like the syntax for A68k and other 68k-assemblers.
Hmmm, the problem is, that the gcc is strongly oriented on gas and
	a) gas allows numbers to be given in several representations like
	   hexadezimal with prefix "0x" or binary ("b"??).
	b) "#" is a comment symbol for gas (ignored since part of the output
	    of cpp i think) and is part of the signs "#APP" and "#NOAPP"
		which enclose inline-assembler
	c) "$" is the prefix for an immediate operand in gas.

Ahh, now I found at least something:
in gcc/config/<your arch>/*.h
You can configure the output for 

At least you can shift it somewhat to your favor. Another possibility to
prepare the gcc output for a different assembler (which I think to be what
you want) would be to fix the assembler code using "sed".

Dipl.-Ing. Stefan M. Petters                   http://www.rcs.ei.tum.de
Institute for Real-Time Computersystems (RCS)      fon +49/89-289-23556 
Technische Universitaet Muenchen, D-80290 Muenchen fax +49/89-289-23555

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

More information about the crossgcc mailing list