AntiPasta
01-24-2005, 10:44 AM
Hi,
I've decided to try a bit of DC development using a coders' cable and homebrew tools. After giving up on getting it running on Linux I found some guide about setting GCC up on Win32 and Dev-C++, which worked, kind of. After a lot of messing around I managed to compile some code of my own, despite the fact that the KOS documentation is older than the latest KOS version itself and several things dont match up any more.
Anyhow, I'll cut short on my rant, I want to include some routines I wrote in SH4 assembly in my program. I tried using inline assembly using the asm() construct but it won't swallow most of my code and seems to use a different syntax than Hitachi themselves. Note that my code compiles perfectly with sh-elf-as! So I'd like to assemble my .S file into an object file linkable to my Dev-C++ project... but what output format should I choose? And how do I tell Dev-C++ to link this file?
Or alternatively, can somebody point me to the most "alive" DC dev forum at the moment?
Thanks in advance.
I've decided to try a bit of DC development using a coders' cable and homebrew tools. After giving up on getting it running on Linux I found some guide about setting GCC up on Win32 and Dev-C++, which worked, kind of. After a lot of messing around I managed to compile some code of my own, despite the fact that the KOS documentation is older than the latest KOS version itself and several things dont match up any more.
Anyhow, I'll cut short on my rant, I want to include some routines I wrote in SH4 assembly in my program. I tried using inline assembly using the asm() construct but it won't swallow most of my code and seems to use a different syntax than Hitachi themselves. Note that my code compiles perfectly with sh-elf-as! So I'd like to assemble my .S file into an object file linkable to my Dev-C++ project... but what output format should I choose? And how do I tell Dev-C++ to link this file?
Or alternatively, can somebody point me to the most "alive" DC dev forum at the moment?
Thanks in advance.