Registers pushed in the beginning of a function

Ian Lance Taylor iant@google.com
Tue Jun 22 13:26:00 GMT 2010


"ivanko.rus" <ivanko.rus@gmail.com> writes:

> Hello everyone! I would like to know if it's possible to exclude "push
> %ebp"; push %edi; push %esi; push %ebx" from the beginning of a
> function. It's just that I need a possibility to control these things
> myself (in only one function, the rest can be normal). Thanks a lot in
> advance!

You could try compiling that one function with -fcall-used-edi
-fcall-used-esi -fcall-used-ebx -fcall-used-ebp -fomit-frame-pointer.

In general you may want to consider writing this function in
assembler.

Ian



More information about the Gcc-help mailing list