Mail Archives: djgpp/1997/04/20/23:54:09
From: | doing AT soback DOT kornet DOT nm DOT kr
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | At inline assemble..
|
Date: | 21 Apr 1997 02:59:46 GMT
|
Organization: | Korea Telecom
|
Lines: | 25
|
Message-ID: | <5jel72$d9q$1@usenet.kornet.nm.kr>
|
NNTP-Posting-Host: | soback.kornet.nm.kr
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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__ ( "
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.
- Raw text -