Tried your gcc port - works as sweet as it could be Thanks so much, Tormod!
I don’t know if it can be replicated on IAR: I fear the initialization code put in by the compiler cannot be linked after your own. Moreover, being explicit in your linker files means also conveying more information to future coders - hopefully, somebody else is going to take on!
That’s a really smart way for getting rid of one of the dependencies between APP and LIB: thanks to BenF for suggesting it, and to your for implementing it.
I’ll try it on IAR5 ASAP, and if it works (can’t see any reason why it shouldn’t) I’ll push it in the svn in place of my own code - your idea looks a lot cleaner than mine.
My next wish: it would be really nice if we could try to minimize the remaining differences among IAR4, IAR5 and gcc, in order to get a smaller code tree.
Thanks a bunch for your work,
Antonio