[swift-dev] [swift-users] Cross Compiling Swift for Bare Metal?
Jens Alfke
jens at mooseyard.com
Sun Dec 20 18:34:22 CST 2015
> On Dec 20, 2015, at 12:22 AM, Dmitri Gribenko via swift-users <swift-users at swift.org> wrote:
>
> Regarding the microcontroller that you referenced, I think it would be an overly ambitious goal to try to make everything work with 256 Kb of flash and 32 Kb of RAM. I would recommend to start with a more powerful bare-metal target
It would be great to get Swift up and running on a beefier ARM system like a BeagleBoard or Raspberry Pi 2, or the upcoming C.H.I.P. (The other RPi models could be problematic because their CPUs are only ARM6.)
Writing for the bare metal probably isn’t the most effective way to go unless your primary goal is to learn — before you can get Swift running you’d need to implement a memory allocator, enough concurrency/threading to be able to handle I/O interrupts, and drivers for whatever I/O devices you need like USB or WiFi. If I were doing a project like this I’d start with a microkernel like FreeRTOS or the guts of MINIX3, which provide the above and a bit more.
—Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20151220/ed048dc7/attachment.html>
More information about the swift-dev
mailing list