standards question

S

Steve Chow

is inline asm specified in any of the C standards or is it just an
addition some compilers provide?
 
G

Guest

is inline asm specified in any of the C standards or is it just an
addition some compilers provide?

no and yes.

Well, really, it's no but there is an appendix of
Common Extensions (appendix F.5 in the ANSI version)
that specifies

asm ( /character-string-literal/ );

but "the inclusion of any extension may cause a strictly
conforming program to invalid...". Also no syntax or semantics
are specified for character-string-literal.

So its an unstandardised extension. The assembler will
by necessity be different for each hardware platform
(at least!). Also even those implementaion that do
allow inline assembler don't all do it the way
Appendix F.5 suggests.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top