Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 718 Bytes

README.md

File metadata and controls

15 lines (8 loc) · 718 Bytes

Taylor

Swift on bare metal.

Requirements

Obviously, you need the Swift compiler, which should also get you a working Clang. Make sure your Clang supports bare ELF targets. I'm also using yasm for some assembly, and you'll need an ld that can spit out elf_i386.

How it Works

We tell swiftc to spit out LLVM intermediate representation, and then have Clang (which is much more reasonable about retargeting) build it into an object file, and then we link that together with some Multiboot stuff.

Swift standard library

What's in here right now doesn't need any Swift runtime support. That will change very quickly as we try to add support for things like arrays, classes, structs, strings, etc.