←back to thread

135 points helfire | 1 comments | | HN request time: 0.684s | source
Show context
ndiddy ◴[] No.43647178[source]
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.
replies(3): >>43647439 #>>43647487 #>>43648386 #
1. KerrAvon ◴[] No.43648386[source]
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.