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

The OpenWRT SDK is quite polished and convenient to use, so I usually use that for custom OpenWRT binaries. But a few days ago I needed to run something custom on my old QNAP NAS (Marvell ARMv5TE based), and I decided to try cross-rs[1] for the first time.

It turned the usual multi-hour expedition of locating and configuring SDKs, toolchains, etc into 3 commands and 5 minutes of downloads and compilation. The resulting executable ran successfully at the first try. I was amazed.

[1] https://github.com/cross-rs/cross



I default to Go for code I want to run on old MIPS and ARMv5/v6 appliances because despite the "huge" binary sizes, cross-compiling is done by setting 2 environmental variables.


Easily making static executables is a huge boon too.




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

Search: