Can we compile and test Apache #NuttX Apps in the Web Browser? Let's explore with TCC #RISCV Compiler, compiled to #WebAssembly with #ZigLang Compiler
Here's our demo of Tiny C Compiler running in the Web Browser ... Thanks to #WebAssembly and #ZigLang Compiler
Article: https://lupyuen.codeberg.page/articles/tcc.html#tcc-in-the-web-browser
How we compile Tiny C Compiler to #WebAssembly ... With #ZigLang Compiler
Article: https://lupyuen.codeberg.page/articles/tcc.html#zig-compiles-tcc-to-webassembly
Tiny C Compiler won't run in #WebAssembly because it calls POSIX Functions ... So we emulate them in #ZigLang
Article: https://lupyuen.codeberg.page/articles/tcc.html#posix-for-webassembly
Our #ZigLang Wrapper emulates File Access for Tiny C Compiler in #WebAssembly
Article: https://lupyuen.codeberg.page/articles/tcc.html#file-input-and-output
Implementing fprintf() in #ZigLang is particularly problematic ... Here's a quick hack with Zig CompTime
Article: https://lupyuen.codeberg.page/articles/tcc.html#fearsome-fprintf-and-friends
Tiny C Compiler in #WebAssembly has compiled our C Program to #RISCV ... But it won't run on Apache #NuttX RTOS because the C Library is missing!
Article: https://lupyuen.codeberg.page/articles/tcc.html#test-with-apache-nuttx-rtos
Here's how we make a #RISCV System Call to Apache #NuttX Kernel ... With some quirks on Tiny C Compiler
Article: https://lupyuen.codeberg.page/articles/tcc.html#hello-nuttx
Running Tiny C Compiler in the Web Browser ... Thanks to #WebAssembly and a little JavaScript
Article: https://lupyuen.codeberg.page/articles/tcc.html#appendix-javascript-calls-tcc
Tiny C Compiler might mash up the #RISCV Registers ... Here's the workaround for Apache #NuttX RTOS
Article: https://lupyuen.codeberg.page/articles/tcc.html#appendix-nuttx-system-call
Can we compile and test Apache #NuttX Apps in the Web Browser? Let's explore with #RISCV Tiny C Compiler, compiled to #WebAssembly with #ZigLang Compiler
Using #ZigLang CompTime for printf() Pattern Matching
Article: https://lupyuen.codeberg.page/articles/tcc.html#appendix-pattern-matching