Mail Archives: djgpp/1998/05/23/03:31:42
Just an observation, but doesn't -fomit-frame-pointer cause the compiler
to use ebp at it's discretion? The only side effect is you can't use
the GBU debugger and profiler. So, -fomit-frame-pointer should allow
you to work with ebp, but I can't be sure of that.
Blaine
Nate Eldredge wrote:
>
> At 11:45 5/22/1998 -0700, Steven S. Falls wrote:
> > In DJGPP asm I can make functions with ebp being used as a general
> >register but In nasm when I use it it get a gpf. why?
>
> ebp has to be the frame pointer for GCC-compiled code. Your NASM code will
> have to save and restore it. Why it worked before, I don't know, unless you
> just got lucky.
>
> Nate Eldredge
> nate AT cartsys DOT com
--
Blaine Hodge
E-Mail: bhodge AT gpu DOT srv DOT ualberta DOT ca
WWW: http://www.ualberta.ca/~bhodge/
- Raw text -