4 ms·
The tables says that Nim is both portable by default and with effort. C only portable with effort. This is weird, because Nim (AFAIK) still requires a C compil
by anta40 6y ago
The tables says that Nim is both portable by default and with effort. C only portable with effort.
This is weird, because Nim (AFAIK) still requires a C compiler like GCC or MSVC to do the final compilation.
In fact, you can see how your Nim code is translated into C, something like this: nim c helloworld.nim
- tumult 6y agoNim uses a C compiler, but produces dependency-free executables. This is not something you can do easily in C alone, unless you want to write your own standard lib. (Or on Linux, try to use musl, but that won't always work depending on what you want to do.)