Re: "Xiph needs someone to help with assembly for MSVC!"

"Fernando Pelliccioni" <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.theora.devel
Message-ID <[email protected]>
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 <[email protected]> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.