I heard that if you run Nim to generate C-code:
nim c -d: release try1.nim
Then the further generated C code can be slipped into any compiler on any operating system.
In the nimcache folder, the following is generated:
@ mtry1.nim.c
stdlib_io.nim.c
stdlib_system.nim.c
try1.json
What to do next with this for compilation?
You might want to try and run nim c -d:release --genScript try1.nim
. This will generate a compile_try1
script in the nimcache folder that should be able to compile the C sources generated by Nim.