Re: [swift-dev] Swift kernel hacking, compiler options and target triples

2016-03-29 Thread Simon Evans via swift-dev
> On 28 Mar 2016, at 22:20, Greg Parker wrote: > > swiftc has a hidden -Xllvm flag that passes options to the LLVM code > generator. That might work for low-level options like instruction selection > and maybe the red zone. It's not the right answer for production use, but it > might be good

Re: [swift-dev] Swift kernel hacking, compiler options and target triples

2016-03-28 Thread John McCall via swift-dev
> On Mar 28, 2016, at 11:16 AM, Simon Evans via swift-dev > wrote: > Hi > > I’ve been experimenting with kernel programming in Swift and this required > disabling the use of the red zone. Currently Im compiling to ELF on Linux and > linking in my own minimal libc/libcpp with libswiftCore.a so it

Re: [swift-dev] Swift kernel hacking, compiler options and target triples

2016-03-28 Thread Greg Parker via swift-dev
> On Mar 28, 2016, at 11:16 AM, Simon Evans via swift-dev > wrote: > > On a related note about compiler options, what could be done about options > such > as enabling/disabling certain instruction sets eg SSE or FP or other such > lowlevel options etc? These wouldn't necessarily always be on o

[swift-dev] Swift kernel hacking, compiler options and target triples

2016-03-28 Thread Simon Evans via swift-dev
Hi I’ve been experimenting with kernel programming in Swift and this required disabling the use of the red zone. Currently Im compiling to ELF on Linux and linking in my own minimal libc/libcpp with libswiftCore.a so its not using any Linux libraries. I did a PR for adding a '-disable-red-zone' o