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

See the CrossGCC FAQ for lots more infromation.


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

Re: gcc assembler output


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 
	IMMEDIATE_PREFIX 
	REGISTER_PREFIX

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".

Regards,
	Stefan.
-- 
-----------------------------------------------------------------------    
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


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