This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: more than 10 operands in `asm'
- To: Kamil Iskra <kamil at dwd dot interkom dot pl>
- Subject: Re: more than 10 operands in `asm'
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Thu, 05 Nov 1998 12:16:48 -0500
- Cc: Jeffrey A Law <law at cygnus dot com>, egcs at cygnus dot com
>>>>> Kamil Iskra writes:
Kamil> On Wed, 4 Nov 1998, Jeffrey A Law wrote:
>> > Why have an arbitrary limitation that really blocks people and could
>> > trivially be removed?
>> Because stuff like %10 would have a different meaning after the change.
Kamil> How about %10 having the old meaning and at the same time allowing more
Kamil> than 10 operands in asm? The ABI of m68k-amigaos forces us to use more
Kamil> than 10 operands, but we don't use %op_number at all, as we allocate
Kamil> registers in C (register ... __asm__("d1")) and just mark them as input
Kamil> in the asm.
Would it be possible to go with a modifier to mean matching
operands? like %00 - %09, %0A - %0Z, %0a - %0z. Another letter or
special character would be better, but one port or another probably uses
it already.
David