[FFmpeg-devel] asm vs __asm__: revenge of the underscores
Roman V. Shaposhnik
Sun Sep 28 22:05:48 CEST 2008
On Sun, 2008-09-28 at 15:44 +0200, Diego 'Flameeyes' Petten? wrote:
> Hi there,
> I'm _still_ trying to get FFmpeg to build on my OpenSolaris box, now
> with the Sun Studio compiler (for once I'm glad it exists for Linux too
> so I can test build outside the virtual machine). The nice thing about
> FFmpeg is that it's standard enough that it should work with Sun's
> compiler; the bad thing about Sun Studio is that it can be quite anal on
> what it supports and what doesn't.
> Beside a patch I'll send later on to improve the checks on compiler
> flags, there's a tree-wide problem with Sun Studio: it does not accept
> asm(""), but only __asm__ ("") for inline assembler.
We are working on a providing a very robust support for GNU asm
extensions in Sun Studio. asm vs. __asm__ is one of the issues
that we will be addressing.
> I've seen there was a discussion about that in April, and the outcome
> was to use asm("") because it was more used; would anybody be against
> getting it back to __asm__("") so that Sun Studio has a chance to get it
> to work?
It would be really nice if for this kind of work-in-progress you
can try our Express builds of Sun Studio instead of Sun Studio 12:
You might be pleasantly surprised as to the level of GNUisms we
try to support.
More information about the ffmpeg-devel