Kevin KoflerLe 17/09/2009 à 07:27
Why not work with TIGCC CVS HEAD, which actually checks out properly?
FlashApp support needs work both in ld-tigcc and in TIGCCLIB. ld-tigcc needs to handle the format and either create the headers or auto-import them from tigcc.a (like the kernel and FlashOS headers work). TIGCCLIB needs changes to the startup code (the whole concept of "startup code" probably isn't really appropriate for FlashApps, plus a lot of code there is self-modifying or relocates the executable, neither of which will work in FlashROM, and finally it may make sense to put some headers into tigcc.a), a way to fill in the FlashApp header (AFAIK, some fields are supposed to be settable by the application) and changes to those functions which are self-modifying in one way or the other (some TIGCCLIB functions construct a jmp inside the code, some have global variables inside the code section).
Just write the necessary patches against TIGCC CVS HEAD and send them to me, that way they'll end up in the official TIGCC, and I'm sure GCC4TI will be importing them from there too, they're quite effective at stealing my work.