What does HackerNews think of Retro68?

a gcc-based cross-compiler for classic 68K and PPC Macintoshes

If you can live with cross-compiling from a modern PC (or Mac) you can use https://github.com/autc04/Retro68 which uses a recent version of GCC.
This app started from our retro programming study group[1] where we're going through the 1992 book "Macintosh C Programming Primer" (come jump in anytime!). Some of us are using real machines (we collect them, also I'm working with SCSI so I need real hardware) or you can grab a premade image and start coding. There's also gcc cross compiler Retro68[2] where you can develop on a modern machine.

[1] https://tinkerdifferent.com/threads/study-group-0-getting-yo... [2] https://github.com/autc04/Retro68

Strongly recommend checking out Retro68 and cross compiling from a newer machine: https://github.com/autc04/Retro68

There are some really good Retro68 code examples out there as well. I started compiling a list here, including a couple of my own: https://henlin.net/2021/12/21/Cool-Retro68-projects/

As a few other folks have said, the inside Macintosh books are extremely valuable references for Mac-specific code. I keep pdfs of them open the whole time I’m working on my Macintosh projects.

That puzzle pack uses GTK too, porting them to Carbon or whatever API Mac OS 9 uses wouldn't be too difficult with some libre SDK targetting OS9.

https://github.com/autc04/Retro68

Also, this guy has a Classic Mac tool sw "runner" a la Wine:

https://github.com/autc04/executor

Forked, that's true, but that's the best Ardi Executor fork by a mile.

if you want to go period-appropriate, you can run Macintosh Programmer's Workshop or CodeWarrior natively

I use retro68 on linux, which is a modern GCC toolchain, so it's just like developing any other C/C++ (well, without some nice debugging tools, and with the added complexity of the mac OS resource stuff)

https://github.com/autc04/Retro68/

While not used by the author here, Retro68 is a hobbyist project targeting a modern GCC-based cross-compiler to the classic 68K and PPC Mac environment.

https://github.com/autc04/Retro68

So you can write C++17 for System 6 too, if you want.

In addition, there is a modern GCC-based toolchain for classic MacOS:

https://github.com/autc04/Retro68

It’s built on Retro68, a gcc based cross-compiler for building classic Mac apps on modern machines: https://github.com/autc04/Retro68