Dave H wrote:
Is there a way to convert .o files compiled using GCC's GAS assembler into the .obj format used by Microsoft compilers?
I'm writing a bit of assembler, but don't want to write it twice, once for use with armasm and once for gas...
I'm planning to use GoldRoad (or any other assembler) to assemble my code to raw binary, and load the code at runtime, with platform-specific 'LoadARMCode()' and 'CallARMFunc()' type routines
(That's assuming PocketPC and Symbian ARM devices allow you to actually execute code from an apps data area... I think they will but haven't tested it yet...)
I'm also planning to run the ARM code natively on PC debug builds using an ARM CPU emulator hacked to directly access the x86 memory space... With enough time/effort, this could be extended to allow full ARM debugging features within a PC build...
The main problem is finding an ARM CPU emulator that's not GPL-encumbered (like the one in VisualBoyAvance, which I've experimented with). I'd have no problems giving away source to an 'ARM on PC' framework/test rig, but wouldn't want to let the GPL 'infect' my whole engine/game