On Tue, 15 Sep 2009, M?ns Rullg?rd wrote:
Loren Merritt <lorenm at u.washington.edu> writes:
Fixed register names (untested). The manually unrolled list is ugly, but I can't find a gas equivalent to yasm's ability to expand macros in macro names.
Can you elaborate on that?
gas: DEFINE_REG 0 DEFINE_REG 1 DEFINE_REG 2 DEFINE_REG 3 DEFINE_REG 4 DEFINE_REG 5 DEFINE_REG 6 DEFINE_REG 7 DEFINE_REG 8 DEFINE_REG 9 DEFINE_REG 10 DEFINE_REG 11 DEFINE_REG 12 DEFINE_REG 13 DEFINE_REG 14 DEFINE_REG 15 DEFINE_REG 16 DEFINE_REG 17 DEFINE_REG 18 DEFINE_REG 19 DEFINE_REG 20 DEFINE_REG 21 DEFINE_REG 22 DEFINE_REG 23 DEFINE_REG 24 DEFINE_REG 25 DEFINE_REG 26 DEFINE_REG 27 DEFINE_REG 28 DEFINE_REG 29 DEFINE_REG 30 DEFINE_REG 31 yasm: %assign i 0 %rep 32 DEFINE_REG i %assign i i+1 %endrep
Didn't change .rodata. Is there some version-dependent define for that? Or same/another configure check?
What is the problem with .rodata again?
Apple calls it .const_data instead. Remaining problems that I don't know how to solve: The only macro syntax that gas supports is named args. The only macro syntax that Apple as supports is numbered args. So a polyglot can't use macros at all. And Guillame said that Apple as doesn't have a string concatenation operator. Can we just not support Apple? That would make it all simple. --Loren Merritt