Mail Archives: djgpp/1999/03/18/21:35:05
Gisle Vanem wrote:
>
> ams AT ludd DOT luth DOT se (Martin Str|mberg) said:
>
> > How do I set or clear the carry flag? I _think_ "andl %%eax, %%eax"
> > clears it (and "orl %%eax, %%eax" too).
>
> How about "setc" and "clc" ?
>
> > How do I inhibit the gcc generated pre- and postlude to c functions?
>
> Use the gcc flag '-fomit-frame-pointer'.
Alternatively, if you want to leave GCC out of the function entirely,
you can use `asm' at the top level. For instance:
static int bar(void);
asm("_bar: movl $42, %eax; ret");
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -