`--os:any --gc:arc and -d:useMalloc` is the tested and proven trio that should work on any reasonable ANSI C implementation. If you even lack a decent stdlib you can stub some of the basic functions like `malloc()`, `fopen()` and still get to run on bare silicon.