GCC -> Stack-Frame entfernen (Prolog/Epilog)
-
Hallo,
gibt es unter GCC, ausser eine Inline-Funktion zu verwenden noch eine andere Möglichkeit
den prolog und epilog einer Funktion (wie naked bei MSVC) zu entfernen?MfG
-
"man gcc" sollte dir weiterhelfen...
//EDIT
-mno-prologue-epilogue
-mprologue-epilogue
With -mno-prologue-epilogue, the normal function prologue and epi-
logue that sets up the stack-frame are omitted and no return
instructions or return sequences are generated in the code. Use
this option only together with visual inspection of the compiled
code: no warnings or errors are generated when call-saved registers
must be saved, or storage for local variable needs to be allocated.Ich bin mal so nett
-
Danke, wo hast du das her?
Finde nirgends die Quelle...
-
man: gcc oder einfach in das Manual des GCCs schauen http://gcc.gnu.org