In conclusion, developers cannot use C code in Alloy app.
Because Alloy app implements this through a feature called mods, it cannot include native C code.
If you want to add an API that executes C code, you need to add a JavaScript API using XS in C to the host application on the PebbleOS side.