Open Toshiyuki-Tega opened 5 years ago
It looks like winim problem, also i would not recommend to anybody to use opensource projects which has compressed binary blobs inside, its unsafe.
No, it is not winim's problem. The problem is because that if you load a large by staticRead, the generated C code won't be accepted by VCC. GCC and TCC don't have this problem. This problem is still exsits in nim compiler 1.4.0.
BTW, winim is safe.
While installing winim 3.1.1 using nimble with vcc frontend (VS 2019), C1060 error (heap exhausted) occurs at
winimx.nim
.Example
Possible Solution
Not sure, but it works fine when gcc (mingw) frontend is used.
Additional Information
In
winimx.nim
, there's a 2MB file embedded usingstaticRead
. It may be a direct/indirect cause of the problem.nim
compiler from currentdevel
branch is used on Windows 10 x64 Japanese.