I wanted a test following compile 1'000'000x WriteLn.
programProject1;
begin
WriteLn(1);
WriteLn(2);
// ...........
WriteLn(1000000);
end.
Then breaks the compiler from the following error.
$ fpc pascaltest.pas Free Pascal Compiler version 3.1.1 [2016/01/07] for
x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS:
Linux for x86-64 Compiling pascaltest.pas pascaltest.pas(7282,3) Fatal:
Procedure too complex, it requires too many registers Fatal: Compilation
aborted Error: /usr/bin/ppcx64 returned an error exitcode
WinXP:
fpc pascaltest.pas
Free Pascal Compiler version 3.0.0 [2015/12/07] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling pascaltest.pas
Fatal: No memory left
Error: c:\lazarus\fpc\3.0.0\bin\i386-win32\ppc386.exe returned an error
exitcode
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel