Mail Archives: djgpp/1997/04/21/02:28:13
> Hi,
>
> I use many inline assembly, but I got trouble with '-O3' option.
> My inline assemble functions are working well With -O2 or -O1.
> The followings are a simple example.
>
> /* File: Test.c */
>
> void Test( int count )
> {
> __asm__ ( "
try:
__asm__ __volatile__ ( "
> MyLoop:
> LOOP MyLoop"
> : : "g" (count) : "cx" );
> }
>
> int main( int argc, char *argv[] )
> {
> Test( 1 );
> Test( 2 );
> }
>
> I hope to use such functions in -O3 option.
>
> Thanks in advance.
>
--
Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de
- Raw text -