This is the mail archive of the gcc-bugs@gcc.gnu.org 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]

Re: more than 10 operands in `asm'


> 
> On  4/11, 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.
> | 
> 
> Why? We can still use %0 .. %9, and then %{10}, %{11}, etc. (provided %{
> has no meaning, if it has one we can choose another symbol). %10 would
> still mean %1 followed by zero, and won't break existing code. 
>   Sam
> -- 
> Samuel Tardieu -- sam@inf.enst.fr
> 

I have little or no knowledge of the real issues involved here, but I
certainly would be not be in favor of %10 meaning %1 followed by 0.
This rule, while consistent, is so non-obvious, that I would consider
it a true impediment to a newbie or someone quickly scanning unfamiliar
code.  If you need more than 10 operands in 'Asm', could %a %b etc be used?

Mostly clueless- Dave



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