c / gcc compiler for OS 9?

Anything not about Mac emulation.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
performa
Student Driver
Posts: 12
Joined: Fri Mar 09, 2018 8:06 pm

c / gcc compiler for OS 9?

Post by performa »

I am looking for a simple gcc compiler that will run under my emulated Mac OS 9.2.2 environment..

where's the best place to look? thanks
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: c / gcc compiler for OS 9?

Post by adespoton »

Here's a list of compilers I made back then:

http://web.archive.org/http://free.proh ... e_abs.html

On that list, there's a GCC for MPW:
http://web.archive.org/web/200402161910 ... mming/gcc/

You'll need to have Apple's Macintosh Programmer's Workshop installed before you can set that up.

Back then, most people used CodeWarrior to compile C/C++ code.
performa
Student Driver
Posts: 12
Joined: Fri Mar 09, 2018 8:06 pm

Re: c / gcc compiler for OS 9?

Post by performa »

Thanks.. but your link sends me to a 404 error

Is CodeWarrior still around for classic environments?
User avatar
24bit
Forum All-Star
Posts: 1424
Joined: Wed Nov 11, 2009 5:47 pm
Location: Germany

Re: c / gcc compiler for OS 9?

Post by 24bit »

Maybe this will do as starting point?
http://macintoshgarden.org/apps/metrowe ... -edition-4
User avatar
mabam
Master Emulator
Posts: 497
Joined: Wed Apr 10, 2013 9:32 am

Re: c / gcc compiler for OS 9?

Post by mabam »

performa wrote:Thanks.. but your link sends me to a 404 error
This capture from 2000 works:
http://web.archive.org/web/200009022302 ... e_abs.html
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: c / gcc compiler for OS 9?

Post by adespoton »

I think he meant the second link... the text file is mirrored, but it appears the hqx files aren't. You can get the internal listing of the hqx files, but those files weren't stored either. And I can't find hensa on the UK Archives anymore.

The stuff must still be around somewhere, but I don't know where. I may have it archived somewhere.

[edit] Found my archives... I'll get it up on MG.

[edit2] Here you go: http://macintoshgarden.org/apps/gnu-c-compiler
performa
Student Driver
Posts: 12
Joined: Fri Mar 09, 2018 8:06 pm

Re: c / gcc compiler for OS 9?

Post by performa »

Thanks for the heads up,

I installed the gcc compiler and Macintosh Programmer's Workshop on my OS 9 setup, but there is not much documentation out there on how to use it. On Mac OS X I can open terminal and type "gcc -S hello.c" and press enter and it will give me an assembly file, I can't figure out how to do this using MPW?

When I try to execute the gcc code (instructed by the gcc compiler I downloaded from the link you provided) I get this error:

Image
uyjulian
Apple Corer
Posts: 244
Joined: Fri Aug 27, 2010 1:02 am

Re: c / gcc compiler for OS 9?

Post by uyjulian »

If you're interested in cross-compilation, Retro68, a toolchain for 68k and PPC for Classic MacOS, is available here: https://github.com/autc04/Retro68
Post Reply