Swift on Mac OS 9

I'm pleased to announce experimental support for Swift compiling to Mac OS 9.

please don't take down my server; I don't know how much git clone it'll handle


You wot mate?


Things to do while self-isolating...


Not just a joke, but definitely worth the read, full of tidbits also for folks who aren't interested in Mac OS 9 but things like porting Swift to bare metal (embedded) targets!


Ooh, shiney! It even has MPW integration.

Now if only Katrina hadn't eaten all of my classic Macs...

But does it have a MrC importer?

It can read (most) MPW header files, is that good enough? :-P

1 Like

@jrose, so when do we get swift-corelibs-libdispatch and swift-corelibs-foundation on it? :rofl:


I guess you mean "UINT_MAX"? :slight_smile:

Well, that's one way to pass time during the quarantine I suppose.

Can you make it for System 6 next? My IIfx is hungry


Your IIfx will run System 7.6.1, which makes a port much more feasible because you can use CFM-68K [1]. Good luck!

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

[1] The alternative being ASLM, and you don’t want to go there, trust me (-:

1 Like

For anyone who actually wants to try, it'll be a bit harder because

  • LLVM doesn't have a 68k backend
  • Nor something that matches the Mac 68k object file format (which I had trouble finding a reference for, eventually found here)

Maybe someday!

Maybe you could generate 68K code directly from SIL. Then add a @segment("...") attribute to handle classic 68K code segments. (Unironically, something like that might also be of interest to people using swift-for-wasm, where you might also want to be able to lazily stream in "segments" of code on demand as you load different parts of a webapp…)


LLVM doesn't have a 68k backend

Wow, that makes me very sad.

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

1 Like
Terms of Service

Privacy Policy

Cookie Policy