Hacker News new | past | comments | ask | show | jobs | submit login

Looks neat! SDL seems open to supporting legacy platforms, so hopefully it'll get mainlined at some point (at this point, may be more likely if they port SDL3 though, SDL2 is in maintenance mode). Does anyone know if it's possible to use a new compiler for this rather than CodeWarrior 7? It would make it easier to port stuff to Mac OS 9 if you don't also have to deal with the compiler only supporting old C/C++ standards.



> compiler only supporting old C/C++ standards.

That's from back when the c++ standard was a rough suggestion. I had to use code warrior 10 for a project back in 2008ish (when standards compliance seemed to actually be picking up real steam across gcc/llvm/msvc) and it was painful how many things that were standard/supported across the other compilers that would break, we ended up basically falling back to closer to c with classes than anything that would resemble modern (at the time) c++.


Retro68k allows you to build with gcc12 https://github.com/autc04/Retro68


The classic 68k Mac binary model is pretty far from what LLVM and GCC support even if they still have backends capable of compiling to older 68k CPUs (I'm not sure if that's case). Executable code is stored in the resource fork; the Mac SDKs require a compiler with support for a special syntax for trap-table based calls; the classic Mac Toolbox expects Pascal-format strings for most things.

helfire mentions Retro68; if you look at its README, you can get an idea of the scope of modifications required.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: