www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/21/02:28:13

From: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Message-Id: <199704210640.IAA05559@gilberto.physik.rwth-aachen.de>
Subject: Re: At inline assemble..
In-Reply-To: <5jel72$d9q$1@usenet.kornet.nm.kr> from "doing@soback.kornet.nm.kr" at "Apr 21, 97 02:59:46 am"
To: doing AT soback DOT kornet DOT nm DOT kr
Date: Mon, 21 Apr 1997 08:40:29 +0200 (MET DST)
Cc: djgpp AT delorie DOT com
Reply-To: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
MIME-Version: 1.0

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019