let c_itoa = ffi('void itoa(int, char*)');
let buf=Sys.malloc(32); // allocate a 32 bytes buffer
// process buf
Did not test it, but it should work.
Remove mos with brew remove mos (and maybe brew untap cesanta/mos),reinstall with curl -fsSL https://mongoose-os.com/downloads/mos/install.sh | NO_BREW=1 /bin/bash and you will be able to mos update 2.6.0
Local and remote builds
When running mos build --local, mos will fetch the libraries which have source files and the modules (eg. mongoose-os, mjs) in the deps directory and the binary libraries in the build directory. Both of them are created in t…
Your app image is >1.5MB.
You can try to decrease the filesystem size and increase the root filesystem size:
MGOS_ROOT_FS_SIZE: 131072 # 128KB=0x20000, default is 256KB=0x40000
APP_SLOT_SIZE: 0x1A0000 # 1536KB+128KB