I followed documents and compiled using nim compileToC helloworld.nim , but just spat out the executable. How can I see the intermediate view of C?
nim compileToC helloworld.nim
nim -c -d:release c helloworld.nim simply creates C files in nimcache without compiling or linking them. -d:release makes reading code easier.
nim -c -d:release c helloworld.nim
nimcache
-d:release
Solved: when you compile the nim program, the nimcache directory nimcache automatically created in the same directory that contains the c code.
The default nimcache directory has been changed from the current working directory to:
$HOME/.cache/nim/<project_name>
$HOME/nimcache/<project_name>
See the related nim compiler documentation article for details.
Source: https://habr.com/ru/post/986260/More articles:Postgres recovery from .dump file: Invalid byte sequence for UTF8 encoding - postgresqlDebugging node.js in Visual Studio Code Preview in OS X - node.jsHow do you programmatically get a list of all common parameters? - reflectionQuoting by date in format R loses - dateUnable to change file name while saving matplotlib digits on Mac system - pythonios-charts How to nullify / redraw after installing data - mpandroidchartDjango 1.8 static files not working - css$ routeParams Hard Refresh does not work on the server (base tag required) - javascriptConvert C # DateTime to Angular Date - dateAre integers atoms in Delphi? - concurrencyAll Articles