Hi, I want to write some lines in C++ by asm
command. But I don't know how to pass a variable
to the asm command.
Thanks!
Could you please provide a reference to the standard for this
assertion? I doubt that you can do better than appendix G.5.10, but
this will hardly do, since the use of asm as a keyword "rendeers an
implementation nonconforming." 'asm' is NOT a reserved keyword in C.
--
Martin Ambuhl (mam...@earthlink.net)
Note: mam...@tiac.net will soon be inactive
: asm is a reserved keyword in C, but its implementation is compiler and
: platform specific. If possible try doing a search for asm in the source
: files for the system for sample code. In most of the implementations I've
: seen, you shouldn't have to write the interface in assembler (e.g.):
asm isn't reserved in C89 - it might be in C9X, I don't know.
It isn't. Its status in K.5.10 in n843 is the same G.5.10 of 9899:1990.
If your implementation makes it a keyword, you break legal code,
rendering your implementation non-conforming.
Martin Ambuhl wrote ...
...
>Could you please provide a reference to the standard for this
>assertion? I doubt that you can do better than appendix G.5.10, but
>this will hardly do, since the use of asm as a keyword "rendeers an
>implementation nonconforming." 'asm' is NOT a reserved keyword in C.
...