I have a function for IAR called __low_level_init(). I know, it is called before main().
Now I'm porting it to gcc. I allready found out, that I have to use _init_startup() for this.
But now, I cannot find any documentation about this and I have a few open questions.
1. Is the _init_startup() allready somehow 'filled' with code, so that I have to expand it with my code? Or is it a normaly empty function which I can just fill with my code?
2. How can I be sure, that this function is really called during startup? I compilled my software with the _init_startup() in it, but when checking the .lss file I cannot find any jump to this function.