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: law at cygnus dot com
- Subject: Re: more than 10 operands in `asm'
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Mon, 9 Nov 1998 16:20:51 +0000 (GMT)
- Cc: egcs at tantalophile dot demon dot co dot uk, dje at watson dot ibm dot com, kamil at dwd dot interkom dot pl, egcs at cygnus dot com
> > - Extend the syntax to %{[0-9]+} for multi-digit operands.
> Ewwwww. It may be backwards compatible, but it's butt ugly.
It would also raise the question how to quote a literal {. Note that
{ ... } nesting is used for assembler dialects.
> Better to find any old style %digitdigit strings and fix them or define
> a simple syntax without context rules.
But how can you output a digit after an operand?
Whatever syntax we chose, we should make it general enough so that it
also covers %c<digit>, %n<digit>, %a<digit> and %l<digit>
Interstingly, Bernd's approach can be immediately applied to these
variants without introducing any conflicts.
To avoid conflicts with %{ for plain operands, we could use %o{<number>} .
However, we then have to check for possible conflicts with target ports
that might use this letter for something special.