Re: [swift-dev] Portable stdlib

2017-08-14 Thread Andy Best via swift-dev
Yes, exactly. Obviously you'd have to provide the necessary functionality for your own platform (e.g. malloc, free, putc, etc.) On Mon, 14 Aug 2017 at 6:54 pm, Slava Pestov wrote: > On Aug 14, 2017, at 9:44 AM, Andy Best via swift-dev > wrote: > > Hey, > > I'm currently looking at building a po

Re: [swift-dev] Portable stdlib

2017-08-14 Thread Slava Pestov via swift-dev
> On Aug 14, 2017, at 9:44 AM, Andy Best via swift-dev > wrote: > > Hey, > > I'm currently looking at building a portable version of the standard library > (for targeting microcontrollers, kernel dev, etc). I’m a bit confused about your terminology. By “portable” do you mean no dependencies

[swift-dev] Portable stdlib

2017-08-14 Thread Andy Best via swift-dev
Hey, I'm currently looking at building a portable version of the standard library (for targeting microcontrollers, kernel dev, etc). The easiest way to cross compile Swift at the moment (that I can find) is to get swiftc to generate LLVM IR (-emit-ir), and use clang to build and cross compile. Th