On 01/13/2016 05:01 PM, Mathias wrote:
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
wowowow... is there something wrong/bad with a short routine?
program Project1;
var
loopcounter : longint;
begin
for loopcounter := 1 to 1000000 do
writeln(loopcounter);
end.
--
NOTE: No off-list assistance is given without prior approval.
*Please keep mailing list traffic on the list* unless
private contact is specifically requested and granted.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel