From: doing AT soback DOT kornet DOT nm DOT kr Newsgroups: comp.os.msdos.djgpp Subject: Re: At inline assemble.. Date: 21 Apr 1997 06:58:15 GMT Organization: System Engineering Research Institute (SERI) Lines: 21 Message-ID: <5jf367$ler$1@usenet.kreonet.re.kr> References: <5jel72$d9q$1 AT usenet DOT kornet DOT nm DOT kr> <335b1224 DOT 16851577 AT news-win DOT inp DOT nsk DOT su> NNTP-Posting-Host: soback.kornet.nm.kr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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.