> Can you show me how to do that?
When you are using the Nim compiler from the command line, then in the current
working directory a subdirectory with name nimcache is created. For example
"nim c test.nim" creates "nimcache/test.c". You can inspect that intermediate C
code. When you have clang installed, you may try "nim c --cc:clang myprog.nim"
to use the clang compiler. Or try compiling with and without option
"-d:release" to see if it makes a difference. Other C compiler options you may
specify in the global or local nim.cfg file. For example I generally use in my
working directory something like
path:"$projectdir"
nimcache:"/tmp/$projectdir"
gcc.options.speed = "-march=native -O3 -flto -fstrict-aliasing"
fstrict-aliasing may not work properly as Mr R. Behrends recently told us, so
use better -fno-strict-aliasing which is the default. -flto is link time
optimazion, it gives smaller executables generally. -O3 is highest gcc
optimazion, you may try -O0, -O1, -O2 also. And also without -march=native.
Do you have a recent, but not too new gcc version?