Adding marker (.dot) instructions at procedure prologue/epilogue

Ian Lance Taylor iant@google.com
Mon Oct 30 17:18:00 GMT 2006


Nikolaos Kavvadias <nkavv@physics.auth.gr> writes:

> I did some search and now believe that it can be done with the help of
> these macros:
> 
> TARGET_ASM_FUNCTION_PROLOGUE
> TARGET_ASM_FUNCTION_EPILOGUE
> 
> Usually these macros provide alternate names to functions that take
> care of prologue code emission
> (e.g. .frame, .mask directives) and should be the proper place for
> adding the .ent (prior procedure entry)
> and .end (after procedure exit, i.e. the return instruction(s)).
> 
> Am I right, or is there something more in it?

You are right, and you can see that the MIPS backend does exactly
that.

Ian



More information about the Gcc-help mailing list