Tiny C Compiler runs in #WebAssembly but it's missing C Header Files ... Let's add the ROM FS Filesystem from Apache #NuttX RTOS ... With a little help from #ZigLang Compiler
Tiny C Compiler in #WebAssembly supports <stdio.h> ... Thanks to the ROM FS Filesystem from Apache #NuttX RTOS
Article: https://lupyuen.codeberg.page/articles/romfs.html#file-access-for-webassembly
ROM FS is a Read-Only Filesystem that runs entirely in memory ... Let's add it to Tiny C Compiler in #WebAssembly
Article: https://lupyuen.codeberg.page/articles/romfs.html#rom-fs-filesystem
ROM FS Filesystem in #WebAssembly ... Let's port the driver from Apache #NuttX RTOS, thanks to #ZigLang Compiler
Article: https://lupyuen.codeberg.page/articles/romfs.html#nuttx-driver-for-rom-fs
How we read the ROM FS Filesystem in #ZigLang ... By calling the Apache #NuttX Driver
Article: https://lupyuen.codeberg.page/articles/romfs.html#open-a-rom-fs-file
Let's snoop inside a ROM FS Filesystem ... It's tiny, no frills and easy to embed in our apps!
Article: https://lupyuen.codeberg.page/articles/romfs.html#inside-a-rom-fs-filesystem
Tiny C Compiler expects POSIX Functions in #WebAssembly: open(), read(), close() … Let's implement them in #ZigLang
Article: https://lupyuen.codeberg.page/articles/romfs.html#tcc-calls-rom-fs-driver
Tiny C Compiler talks to Apache #NuttX Emulator in the Web Browser ... Thanks to JavaScript Local Storage
Article: https://lupyuen.codeberg.page/articles/romfs.html#from-tcc-to-nuttx-emulator
Tiny C Compiler runs in #WebAssembly but it's missing C Header Files ... Let's add the ROM FS Filesystem from Apache #NuttX RTOS ... With a little help from #ZigLang Compiler
@lupyuen wait... it's all written in zig?
@hexaheximal The driver is in C, we're calling from Zig :-)
Try our demo of Tiny C Compiler in #WebAssembly ... Which will compile and run Apache #NuttX Apps!
Article: https://lupyuen.codeberg.page/articles/romfs.html#c-compiler-in-our-web-browser