TCC Compiler can be run in a Web Browser using WebAssembly with Zig Compiler. The missing POSIX functions in WebAssembly are being addressed by providing minimal file input and output and a simple workaround for fprintf and friends. The RISC-V binary produced by TCC can be run on Apache NuttX RTOS.
Table of contents
TCC RISC-V Compiler runs in the Web Browser (thanks to Zig Compiler)1 TCC in the Web Browser2 Zig compiles TCC to WebAssembly3 POSIX for WebAssembly4 File Input and Output5 Fearsome fprintf and Friends6 Test with Apache NuttX RTOS7 Hello NuttX!8 What’s Next9 Appendix: Compile TCC with Zig10 Appendix: JavaScript calls TCC11 Appendix: Pattern Matching12 Appendix: NuttX System Call13 Appendix: Build NuttX for QEMU14 Appendix: Missing FunctionsSort: