Generating assembly code without macro-instructions
Thiemo Seufer
ths@networkno.de
Mon Feb 27 21:28:00 GMT 2006
On Mon, Feb 27, 2006 at 04:47:38PM +0200, Nikolaos Kavvadias wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi there
>
> i have a question. Is there any way for mature ports (e.g. MIPS,
> Alpha, SPARC) to generate directly "real" assembly instructions (as
> these are shown by "gas -l") instead of macro-instructions? See below
> for such a case. BTW can this be done for "dot" instructions (assembly
> directives) too, are these are required information for the linker?
>
> An example of a macro-instruction that could be replaced on-the-fly by
> two "real" assembly instructions for the MIPS:
>
> Macro:
> li %reg, %imm
>
> Actual assembly:
> lui %0, \%hi(%1)
> ori %0, %0, %1
In newer Gccs the -m(no-)explicit-relocs may at least partially achieve
what you want.
Thiemo
More information about the Binutils
mailing list