[Ffmpeg-devel] compiler warnings

Dave Dodge dododge
Fri Mar 31 07:10:04 CEST 2006


On Thu, Mar 30, 2006 at 12:19:12PM +0200, Steve Lhomme wrote:
> Also, does C99 describe how inline assembly should be supported ?

No.  It makes brief mention of the concept in the "Common extensions"
section of Annex J, but only as an example of something that some
implementations might add to the language.  The example syntax is:

  asm ( character-string-literal );

It also notes that the addition of a keyword such as "asm" would
probably render the implementation non-conforming since it would no
longer be able to compile a correct program that used that word as a
regular identifier.

Interestingly, Intel's expensive commercial C/C++ compilers don't
support inline assembly at all on IA-64, and that appears to be an
intentional decision.  They instead have a large set of compiler
intrinsics you can use to get roughly the same functionality with
type-checking and C notation.  I know some folks don't care much for
intrinsics, or rather don't care much for the suboptimal code that
current compilers sometimes generate from them.

                                                  -Dave Dodge





More information about the ffmpeg-devel mailing list