4 ms·
It builds Swift without any standard library, runtime or linkage to other components. This isn't normally possible with the Swift compiler. The solution doesn'
by gilgoomesh 10y ago
It builds Swift without any standard library, runtime or linkage to other components. This isn't normally possible with the Swift compiler.
The solution doesn't involve changing the compiler or building everything into the executable. Instead, this is a makefile coordinated pipeline (front-end swiftc, back-end clang) plus a start.s and a system.c file that omit any need for typical standard library components in the first place.
i.e. a "bare metal" compilation
- blkhp19 10y agoWithout the swift standard library, what can be done? Doesn't the standard library include all of the basic types, like Array, Int, etc?
- kr7 10y agoFixed-size integers and UnsafeMutablePointer are supported, so it is basically C with different syntax: https://github.com/klange/taylor/blob/master/src/main.swift https://github.com/klange/taylor/blob/master/src/main.swift