This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS570LS3137-EP: ZI_FUNCTION Invocation

Part Number: TMS570LS3137-EP


Tool/software: TI C/C++ Compiler

Please forgive me if this is not the appropriate forum for this question.  I'm still feeling my way around.

I am trying to find out how or when the ZI_FUNCTION() is invoked.  Given that there are functions like memset() available, what is the purpose for ZI_FUNCTION(), who calls it and when?  To which Output Buffer do the comments within the function refer?

  • ZI_FUNCTION, aka __TI_zero_init, is just a wrapper function for memset so that memset may be called from a copy table.
    The linker arranges for this function to be called to initialize zero-initialized global variables. Users are not meant to call it directly.