Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What c compiler does nim use to make exe file?

Should I install gcc or other c compiler after installing nim to compile my code to an executable file or it contains? If it contains, which c compiler it uses? gcc, tcc, clang etc.

Don’t get me wrong, I dont want to convert my nim code to c.

I just want to know what compiler it uses after translating nim to c to make mashin code.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I don’t want to install it before I’m getting sure, how it really works.

>Solution :

From the install on Linux/Unix/macOS page:

The Nim compiler needs a C compiler in order to compile software. You must install this separately and ensure that it is in your PATH.

[Emphasis mine]

So yes you need to install a C compiler for it to work. There’s no mention about which compiler to install or use, so it probably uses the common alias cc to build the C source.

You can install the default compiler for your platform and it should work.


The Windows download page recommends MinGW, which is GCC.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading