[fpc-devel] Program too long ?

Mathias m_burkhard at gmx.ch
Wed Jan 13 23:01:19 CET 2016


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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160113/4ea04b19/attachment.html>


More information about the fpc-devel mailing list