This is the mail archive of the mailing list for the GCC project.

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: Revised patch to remove integer output macros

Hans-Peter Nilsson <> writes:
> >    mmix
> > 	Now uses ".byte" exclusively, instead of using "BYTE" for
> > 	some things and ".byte" for others.
> That's not really good.  Now we lost compatibility with Knuth's
> mmixal assembler/linker for assembly generated from simple C
> code.  C++ was hopelessly lost before too, but the generated
> assembly wasn't really readable anyway. :-)

OK, I'll use BYTE.

> With your patch, are numbers always emitted as decimal, or are
> there cases (for C code) where numbers are emitted as 0xNNNN?
> I ask because the "0xNNNN" syntax isn't allowed in mmixal
> syntax; it has to be decimal, or "#NNNN" for hex.

In that case I'll keep the ASM_OUTPUT_CHAR code for bytes.
The debugging output will also use this code, giving you the
"BYTE #<hex>" syntax there too.

I notice the dwarf code still uses .2byte, .4byte and .8byte.  The
new hook should allow you to use things like "WYDE #<hex>" instead,
if that's appropriate.


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