dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]gcc -O3 cannot compile engine/cvm.c


From: Gopal V
Subject: Re: [DotGNU]gcc -O3 cannot compile engine/cvm.c
Date: Mon, 25 Nov 2002 02:56:10 +0530
User-agent: Mutt/1.2.5i

If memory serves me right, Blair Zajac wrote:
> Compiling cvm.c fails:
> 
> /opt/i386-linux/installed/gcc-3.2.1/bin/gcc -DHAVE_CONFIG_H -I. -I. \
> -I../include    -I../libffi/include -fno-gcse -I../include  \
> -I../libffi/include -I. -O3 -Wall -c cvm.c

Expected failure ... -O3 messes up the engine and tries to push the
fast variables into the stack ... Which is what I understood ...

> Is this a bug in pnet and/or gcc?  Should this bug be reported to the gcc
> folks?

#if defined(CVM_X86) && defined(__GNUC__) && !defined(IL_NO_ASM)
    #define REGISTER_ASM_PC(x)              register x asm ("esi")
    #define REGISTER_ASM_STACK(x)           register x asm ("edi")
    #define REGISTER_ASM_FRAME(x)           register x asm ("ebx")

Does this answer your question ? ... GCC left to itself knows to manage
correctly ... but this is obviously a low level override ... (this did
a 15% speed gain , if pnetmark is right ...)

Live happily everafter with -O2 .. :-)
Gopal
-- 
The difference between insanity and genius is measured by success


reply via email to

[Prev in Thread] Current Thread [Next in Thread]