Mail Archives: djgpp/1997/04/21/05:09:03
Michael Bukin (bukinm AT inp DOT nsk DOT su) wrote:
: With `-O3' `Test' is inlined and this will result in
: `MyLoop' label defined twice in `main', which is not
: acceptable by assembler. Use `.' for referencing
: current address.
: Also, load `count' into ecx explicitely
: (use "c" instead of "g").
: inline void
: Test (int _count)
: {
: __asm__ volatile ("loop ."
: : : "c" (_count) : "%ecx");
: }
: Look at generated assembler input with gcc -S
Thanks for you reply. The example was made too hurry. ^^; So I coudn't
check "g" (count) routine. But I didn't mean Referencing current address.
I want to use label in inline assembly with -O3 option.
Many thanks in advance.
- Raw text -