Apache #NuttX RTOS is bundled with a simple #ZigLang App ... Let's run this on #BL602
https://github.com/lupyuen/zig-bl602-nuttx#zig-app-for-nuttx
Apache #NuttX RTOS fails to build our #ZigLang App ... But no worries! Let's compile it ourselves
https://github.com/lupyuen/zig-bl602-nuttx#build-fails-on-nuttx
Apache #NuttX RTOS fails to link with our #ZigLang Compiled App ... Let's find out why we "can't link soft-float modules with single-float modules"
https://github.com/lupyuen/zig-bl602-nuttx#floating-point-abi
But #ZigLang Compiler produces an Object File with Software Floating-Point ABI ... This won't link with #BL602 #NuttX on Hardware Floating-Point!
https://github.com/lupyuen/zig-bl602-nuttx#floating-point-abi
Here's how we import C functions into #ZigLang
https://lupyuen.github.io/articles/zig?3#import-standard-library
Apache #NuttX Build fails with our #ZigLang App ... But no worries! Let's compile it ourselves
https://lupyuen.github.io/articles/zig?6#build-fails-on-nuttx
#ZigLang Compiler is a drop-in replacement for C Compiler ... Works great for maintaining complex C projects!
We do ELF Header Surgery on the #ZigLang Output for #BL602 ... And change "Software Floating-Point ABI" to "Hardware Floating-Point ABI"
https://github.com/lupyuen/zig-bl602-nuttx#patch-elf-header