Quote Originally Posted by dmantione
Quote Originally Posted by Legolas
Seems like the executable goes in a bad kind of loop, because I have noticed a loss of frame rate on the emulator (working executable runs at 100%, bad one runs at 70%).
That points into the direction of the second explanations, which is a bit what I was afraid of. Assuming the GBA bios does not destroy registers other than input and output, you should check if the compiler has data stored in r1 before it calls fpc_mod_longint, since r1 is destroyed by your implementation of fpc_mod_longint.
Urgh!!! That hurts... I have found some ASM tutorials for ARM... Maybe this is the time to start reading them

[quote]
What kind of exe size did you get with smart]
Well, about 30/35 kb instead of 160. That's fine
Yes, but it should be possible to do better. It might be an idea to check what kind of code is called by the system.pp unit initialization and kick some cruft out. But on the other hand, it's not a big priority at the moment, fast math is much more important.
I have used linux rtl and I havent removed alot of lines, indeed.