gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > Thumb compiler for Mac OS X

#127 - Touchstone - Fri Jan 03, 2003 7:26 pm

Hi,

I'd like to generate thumb code from my c source. Anyone know of a c compiler that does this? The compiler must run on Mac OS X. Is there a c compiler that generates thumb code for Windows / Linux?

Cheers,
Touchstone

#128 - Costis - Fri Jan 03, 2003 7:31 pm

Hi,

I know GCC supports compiling for ARM, THUMB and ARM-THUMB Interwork targets. There should be a Mac OS X port of the compiler, but if there's not you can try compiling it yourself (GCC is open-source).

Costis

#136 - Touchstone - Fri Jan 03, 2003 8:29 pm

I can't find a package including a precompiled thumb compiler for Mac OS X but on the other hand Internet is a huge place to search through so it could easely have slipped me by.

Suppose I could try and download the gcc source and compile it my self but it sounds rather complicated. I think I'd rather wait for somebody else to do it unless I find out I really need to do thumb code.

It would be marvelous though if someone already have compiled the thumb compiler for Mac OS X and can tell me where I can get it from. :)

#242 - Burre - Sun Jan 05, 2003 2:29 pm

I know I've seen Mac OS X gcc compilers for GBA. I can't remember where though or if it were ARM or Thumb, but it does exist, that much I know.
_________________
"The best optimizer is between your ears..."

#248 - dan - Sun Jan 05, 2003 3:45 pm

this one was linked from www.devrs.com/gba so it ought to be of some good to you:

http://gnufoo.org/gbasdk/

good luck!
_________________
Free modplayer library with full asm-soure:
http://www.gatesboy.com/fras

Free lua development kit:
http://www.gatesboy.com/Lua/Documentation/index.html

#250 - Burre - Sun Jan 05, 2003 3:48 pm

dan wrote:
this one was linked from www.devrs.com/gba so it ought to be of some good to you:

http://gnufoo.org/gbasdk/

good luck!


Yeah, that is probably the same one I saw.
_________________
"The best optimizer is between your ears..."

#253 - Touchstone - Sun Jan 05, 2003 4:34 pm

Thanks for the help but I already have that one. It seems to have just arm code, no support for thumb except for the assembler.

#305 - jaymzjulian - Mon Jan 06, 2003 3:01 am

Touchstone wrote:
Thanks for the help but I already have that one. It seems to have just arm code, no support for thumb except for the assembler.


Given that it's gcc 3.0.4 based, you *should* just be able to use -mthumb with it, and have it be all good

- jj

#309 - Touchstone - Mon Jan 06, 2003 4:19 am

Well I'll be damned. It is in fact 3.0.4 and yes, the switch '-mthumb' make the compiler generate thumb code instead of arm. Thanks-a-plenty!

#477 - tubooboo - Wed Jan 08, 2003 1:41 am

but given you hav e a UNIX'ish shell environment in MACOSX including a GCC compiler chain and Sh/Perl for your Mac ready to go, you might want to have a look at the Compiler Builder Edition of HAM. It would be interesting if the install works on MACOSX.

Let me know, best via email
Emanuel
_________________
HAM author
http://www.ngine.de

#484 - Touchstone - Wed Jan 08, 2003 1:58 am

I'll give it a go but I'm new to all this Unix shell stuff so just because I can't do it doesn't mean it cannot be done. :)
_________________
You can't beat our meat