nimAES
nimAES copied to clipboard
Nim 0.18.0 compilation problem
When compiling any Nim program using NimAES, a very large .c file is generated (several MBs), which takes a long time to compile, uses up a large amount of memory during compilation making it impossibly ble to compile on low-memory systems (500-1000MB of RAM) and results in bigger executables.
This can be observed even when compiling the test program in this repository.
I never encountered this behavior in previous versions of Nim. Any idea why this is happening now?
looks like Nim optimizer become more aggresive than before. It unwind the for loop of a table initialization and turn it into large static table, hence the big file size. I don't know yet how to turn this optimizer off or turn it off for selected piece of code.