Re: [fpc-devel] Program too long ?

2016-01-15 Thread Mark Morgan Lloyd
Bernd Oppolzer wrote: Jonas Maebe schrieb: On 14/01/16 17:45, Mathias wrote: The code is machine generated. I wanted to test which compiler is faster, the. Of FPC or C ++ C ++ could compile the code without errors. Whether or not it can be compiled is unrelated to the language of course,

Re: [fpc-devel] Program too long ?

2016-01-14 Thread wkitty42
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(100); end. Then breaks the compiler from the following error. $ fpc

Re: [fpc-devel] Program too long ?

2016-01-14 Thread wkitty42
On 01/14/2016 11:22 AM, Mark Morgan Lloyd wrote: wkitt...@windstream.net wrote: On 01/13/2016 05:01 PM, Mathias wrote: I wanted a test following compile 1'000'000x WriteLn. Procedure too complex, it requires too many registers Fatal: Compilation aborted Error: /usr/bin/ppcx64 returned an

Re: [fpc-devel] Program too long ?

2016-01-14 Thread Mark Morgan Lloyd
wkitt...@windstream.net wrote: OTOH it's very easy to end up with enormous functions- or even an enormous main block- if machine-generating source by e.g. macro expansion. now that you mention it, i do have a machine generated routine in one of my apps... it was much easier to write code to

Re: [fpc-devel] Program too long ?

2016-01-14 Thread Jonas Maebe
On 14/01/16 17:45, Mathias wrote: The code is machine generated. I wanted to test which compiler is faster, the. Of FPC or C ++ C ++ could compile the code without errors. Whether or not it can be compiled is unrelated to the language of course, but to the compiler. We indeed only develop FPC

Re: [fpc-devel] Program too long ?

2016-01-14 Thread Mathias
The code is machine generated. I wanted to test which compiler is faster, the. Of FPC or C ++ C ++ could compile the code without errors. int main(){ std::cout << 0 << std::endl; std::cout << 1 << std::endl; mfg Mathias Am 13.01.2016 um 23:19 schrieb Jonas Maebe: On 13/01/16 23:01,

Re: [fpc-devel] Program too long ?

2016-01-14 Thread Mark Morgan Lloyd
wkitt...@windstream.net wrote: On 01/13/2016 05:01 PM, Mathias wrote: I wanted a test following compile 1'000'000x WriteLn. Procedure too complex, it requires too many registers Fatal: Compilation aborted Error: /usr/bin/ppcx64 returned an error exitcode wowowow... is there something

Re: [fpc-devel] Program too long ?

2016-01-14 Thread Mathias
I've split the code, as you said. With the factor 1000, it did not err in within about 75s compiled. The source had it about 1,000,000 rows. rows. program test; procedure p0; begin WriteLn(0); WriteLn(1); WriteLn(2); end; procedure p1; begin WriteLn(2); WriteLn(3); WriteLn(4); end;

Re: [fpc-devel] Program too long ?

2016-01-14 Thread Bernd Oppolzer
Jonas Maebe schrieb: On 14/01/16 17:45, Mathias wrote: The code is machine generated. I wanted to test which compiler is faster, the. Of FPC or C ++ C ++ could compile the code without errors. Whether or not it can be compiled is unrelated to the language of course, but to the compiler. We

Re: [fpc-devel] Program too long ?

2016-01-13 Thread Jonas Maebe
On 13/01/16 23:01, Mathias wrote: I wanted a test following compile 1'000'000x WriteLn. It's not the program that's too long, but a single procedure that's too long. If you split it up in a 1000 (or maybe even a 100) procedures, it should compile fine. Jonas

[fpc-devel] Program too long ?

2016-01-13 Thread Mathias
I wanted a test following compile 1'000'000x WriteLn. programProject1; begin WriteLn(1); WriteLn(2); // ... WriteLn(100); end. Then breaks the compiler from the following error. $ fpc pascaltest.pas Free Pascal Compiler version 3.1.1