Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Cross-compilation looks pretty simple in Nim:

http://nim-lang.org/nimc.html#cross-compilation

Since Nim uses C as an intermediate representation, cross-compilation support should be as good as your C compiler's.

Rust's cross-compilation seems to not be that great at the moment. Although i believe that's because it hasn't been done yet, rather than having been done badly.



Rust's cross-compilation works, but it's not as easy as it could be. One issue is that you need a cross-compiled version of the standard library lying around.


Isn't that an issue with every compiled language? I remember always having to cross-compile newlib when I set cross-compiled gcc environments.


It's true, but you can make this easier or harder, depending. We don't make it particularly easy. It's a mater of polish.


For Go you don't. I found it quite awesome when I could cross-compile something for my raspberry-pi from a Windows PC.


Does this mean they ship with the cross compiled libraries installed?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: