jrose
(Jordan Rose)
1
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
50 Likes
Karl
(👑🦆)
3
Things to do while self-isolating...
3 Likes
IOOI
(Lars Sonchocky-Helldorf)
4
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!
6 Likes
Ooh, shiney! It even has MPW integration.
Now if only Katrina hadn't eaten all of my classic Macs...
scanon
(Steve Canon)
6
But does it have a MrC importer?
jrose
(Jordan Rose)
7
It can read (most) MPW header files, is that good enough? :-P
1 Like
compnerd
(Saleem Abdulrasool)
8
@jrose, so when do we get swift-corelibs-libdispatch and swift-corelibs-foundation on it? 
4 Likes
lolgear
(Dmitry Lobanov)
9
I guess you mean "UINT_MAX"? 
donn
(Donn)
10
Well, that's one way to pass time during the quarantine I suppose.
vitamin
(Jon Gilbert)
11
Can you make it for System 6 next? My IIfx is hungry
2 Likes
eskimo
(Quinn “The Eskimo!”)
12
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 (-:
2 Likes
jrose
(Jordan Rose)
13
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!
Joe_Groff
(Joe Groff)
14
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…)
5 Likes
eskimo
(Quinn “The Eskimo!”)
15
LLVM doesn't have a 68k backend
Wow, that makes me very sad.
Share and Enjoy
Quinn “The Eskimo!” @ DTS @ Apple
2 Likes
idrougge
(Iggy Drougge)
16
I think it does now. LLVM Clang Mainlines Support For The Motorola 68000 Series (m68k) - Phoronix
Someone has already managed to make Rust output 68000 binaries.
4 Likes