[theora-dev] "Xiph needs someone to help with assembly for MSVC!"

Fernando Pelliccioni fpelliccioni at gmail.com
Thu Oct 2 07:49:24 PDT 2008


I am using MINGW (GCC) 4.3.0 and the example below trows me the following error:

--> impossible register constraint in 'asm'	

It seem that MinGW-GCC doesn 't support this feacture.

Fernando.



On Thu, Oct 2, 2008 at 11:38 AM, Chris Brien <chris.brien at tandberg.com> wrote:
> Fernando Pelliccioni wrote:
>
>> I don't known how to count the 'asm_c_var' entries to convert to '%0',
>> '%1', ... '%n' ...
>
> You don't. Since GCC 3.1, you can name variables in asm (the names exist in
> a different namespace from C variables so they have to be bound as
> constraints). The example from
> http://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html reads
>
> asm ("fsinx %[angle],%[output]"
>          : [output] "=f" (result)
>          : [angle] "f" (angle));
>
> Chris
>


More information about the theora-dev mailing list