The /config directory survives reboot. You could build in a subdir below that.
(type 'mount' and see cryptic details)
I can't support that. /config is vfat.

yeah i tried that first but no go on /config for compile
but can we compile/create something and then stash it in /config?
I would think you could statically compile the binary so all the libraries are linked into the final product, then stash that on /config. Then just copy it over to /home/root or wherever to actually run it.