Modifying prolouge function in gcc

Ian Lance Taylor iant@google.com
Sat Jun 9 02:04:00 GMT 2007


SandeepThorat <sathorat2003@yahoo.com> writes:

>         i want to make some modification to prolouge(& epilouge) function of
> gcc compiler. I m using version 4.1.0. 
> 
> Can anybody tel me out- which file contain these functions, How to make
> changes & how to recompile it to take effect.

For most targets the prologue is generated by the expander named
"prologue" in the config/CPU/CPU.md file.  Similarly for the epilogue.

You also need to consider whether the config/CPU/CPU.c file defines
TARGET_ASM_FUNCTION_PROLOGUE and TARGET_ASM_FUNCTION_EPILOGUE.

Ian



More information about the Gcc-help mailing list