> Is Nim compiled automatically with -march=native?
No. For gcc I am using something like this:
cat nimgir/nim.cfg
path:"$projectdir"
nimcache:"/tmp/$projectdir"
gcc.options.speed = "-march=native -O3 -flto -fstrict-aliasing"
But the performance increase of -march=native is not as big as I once thought, typical only 10 % or less. > Last thing, I'm using global var arrays currently May your problem be just a stack overflow? Arrays defined inside a proc are generally allocated on the stack.
