Bill Knight wrote:

An easy way to do this is to set the stack pointer
then immediatly call the routine. Then supply a dummy routine in the MSP specific library that is
linked in if the user does not supply one.  The
dummy routine simply returns.

This is exactly how it is implementd in IAR's compiler.



Additional information:
In IAR's compiler the return-value of __low_level_init decides, if the C prologue is computed (return 1;) or not (return 0;). So the user has an additional mechanism, to choose, if __reset_vector_ is computed. In both cases the memory for the C prologue is used (and wasted, if not computed), but this is the price for this easy way.


Ralf


Reply via email to