Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Mon, 24 Dec 2012, Martin Schreiber wrote: - Produce at least as good code as Delphi 7. - Compile at least as fast as Delphi 7. You know that sacrifices need to be made to make a compiler cross platform and easily portable. You can't have it all. We will

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Martin Schreiber
On Tuesday 25 December 2012 11:20:02 Michael Van Canneyt wrote: Everybody is aware of the speed difference between Delphi and FPC. The compiling itself (parsing/producing assembler code) is not slow. From what I remember, the problems you (and everyone else) experience with smartlinking

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Michael Van Canneyt
On Tue, 25 Dec 2012, Martin Schreiber wrote: On Tuesday 25 December 2012 11:20:02 Michael Van Canneyt wrote: Everybody is aware of the speed difference between Delphi and FPC. The compiling itself (parsing/producing assembler code) is not slow. From what I remember, the problems you (and

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Michael Van Canneyt
On Tue, 25 Dec 2012, Sven Barth wrote: On 25.12.2012 12:13, Martin Schreiber wrote: On Tuesday 25 December 2012 11:20:02 Michael Van Canneyt wrote: Everybody is aware of the speed difference between Delphi and FPC. The compiling itself (parsing/producing assembler code) is not slow. From

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Marco van de Voort
In our previous episode, Sven Barth said: and linked about 10 times as fast as FPC. AFAIK Delphi's command line compiler does not allow you to skip the assembling and linking phase, so the fairest comparison would be to compare the compilation of a single unit as there the linking phase

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Sven Barth
On 25.12.2012 12:40, Michael Van Canneyt wrote: On Tue, 25 Dec 2012, Sven Barth wrote: On 25.12.2012 12:13, Martin Schreiber wrote: On Tuesday 25 December 2012 11:20:02 Michael Van Canneyt wrote: Everybody is aware of the speed difference between Delphi and FPC. The compiling itself

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Mark Morgan Lloyd
Sven Barth wrote: On 25.12.2012 11:32, Mark Morgan Lloyd wrote: Although I think the time is approaching when some CPUs- IA-64 etc.- and OSes could usefully be moved into an attic subtree. They aren't compiled anyway, so they don't affect the compiler's performance negatively. So it does

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Yury Sidorov
From: Marco van de Voort mar...@stack.nl In our previous episode, Sven Barth said: and linked about 10 times as fast as FPC. AFAIK Delphi's command line compiler does not allow you to skip the assembling and linking phase, so the fairest comparison would be to compare the compilation of a

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Jy V
Although I think the time is approaching when some CPUs- IA-64 etc.- and OSes could usefully be moved into an attic subtree. Agreed. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Florian Klaempfl
Am 25.12.2012 12:38, schrieb Michael Van Canneyt: On Tue, 25 Dec 2012, Martin Schreiber wrote: On Tuesday 25 December 2012 11:20:02 Michael Van Canneyt wrote: Everybody is aware of the speed difference between Delphi and FPC. The compiling itself (parsing/producing assembler code) is not

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Florian Klaempfl
Am 25.12.2012 13:39, schrieb Yury Sidorov: It is possible to seed-up compilation by allocating memory for nodes from some zero pre-filled memory pool to avoid costly calls to heap manager and avoid zero filling of small memory chunks. A base class for various FPC nodes should be modified to

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Sven Barth
On 25.12.2012 13:24, Mark Morgan Lloyd wrote: Sven Barth wrote: On 25.12.2012 11:32, Mark Morgan Lloyd wrote: Although I think the time is approaching when some CPUs- IA-64 etc.- and OSes could usefully be moved into an attic subtree. They aren't compiled anyway, so they don't affect the

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Yury Sidorov
From: Florian Klaempfl flor...@freepascal.org Am 25.12.2012 13:39, schrieb Yury Sidorov: It is possible to seed-up compilation by allocating memory for nodes from some zero pre-filled memory pool to avoid costly calls to heap manager and avoid zero filling of small memory chunks. A base class

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Jy V
The only approach I see to speed it up is to kick the whole back end and generate directly some close to i386 intermediate code directly in the parser. Is this close i386 intermediate code similar to IR LLVM generation ? if so, this may become a good option for a new strategy ?

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Yury Sidorov
From: Yury Sidorov j...@cp-lab.com From: Florian Klaempfl flor...@freepascal.org Am 25.12.2012 13:39, schrieb Yury Sidorov: It is possible to seed-up compilation by allocating memory for nodes from some zero pre-filled memory pool to avoid costly calls to heap manager and avoid zero filling

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Florian Klaempfl
Am 25.12.2012 14:53, schrieb Jy V: Although FPC heap manager is good, but custom pool memory allocation will be much faster, since it will be very simple: Result:=CurPoolPtr; Inc(CurPoolPtr, BlockSize); if CurPoolPtr MaxPoolPtr then AllocNewZeroFilledPool(); It

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Jy V
The total time FPC spend in memory manangement is 20% iirc. So I don't see much optimization potential here. OK. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Florian Klaempfl
Am 25.12.2012 14:44, schrieb Jy V: The only approach I see to speed it up is to kick the whole back end and generate directly some close to i386 intermediate code directly in the parser. Is this close i386 intermediate code similar to IR LLVM generation ? No. It must be much

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Jy V
Is this close i386 intermediate code similar to IR LLVM generation ? No. It must be much closer to i386 else there is no speed advantage over the current approach. OK, understood. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Sven Barth
On 25.12.2012 14:15, Florian Klaempfl wrote: The only approach I see to speed it up is to kick the whole back end and generate directly some close to i386 intermediate code directly in the parser. Ewww... please not... Regards, Sven ___ fpc-devel

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Florian Klaempfl
Am 25.12.2012 15:04, schrieb Sven Barth: On 25.12.2012 14:15, Florian Klaempfl wrote: The only approach I see to speed it up is to kick the whole back end and generate directly some close to i386 intermediate code directly in the parser. Ewww... please not... No, we would be back in pre 1.0

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Florian Klaempfl
Am 25.12.2012 14:59, schrieb Yury Sidorov: From: Yury Sidorov j...@cp-lab.com From: Florian Klaempfl flor...@freepascal.org Am 25.12.2012 13:39, schrieb Yury Sidorov: It is possible to seed-up compilation by allocating memory for nodes from some zero pre-filled memory pool to avoid costly

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Paul Ishenin
25.12.12, 21:59, Yury Sidorov пишет: Hmm, Seems to be a false alarm :( I've made some tests just now with memory allocation and found that such pooling will not speed up the compiler too much. Only minor improvement such as 10-20% :( 10-20% is still much better than nothing. Best regards,

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Florian Klaempfl
Am 25.12.2012 15:11, schrieb Paul Ishenin: 25.12.12, 21:59, Yury Sidorov пишет: Hmm, Seems to be a false alarm :( I've made some tests just now with memory allocation and found that such pooling will not speed up the compiler too much. Only minor improvement such as 10-20% :( 10-20% is

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Yury Sidorov
From: Paul Ishenin paul.ishe...@gmail.com 25.12.12, 21:59, Yury Sidorov пишет: Hmm, Seems to be a false alarm :( I've made some tests just now with memory allocation and found that such pooling will not speed up the compiler too much. Only minor improvement such as 10-20% :( 10-20% is

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Florian Klaempfl
Am 25.12.2012 15:17, schrieb Yury Sidorov: From: Paul Ishenin paul.ishe...@gmail.com 25.12.12, 21:59, Yury Sidorov пишет: Hmm, Seems to be a false alarm :( I've made some tests just now with memory allocation and found that such pooling will not speed up the compiler too much. Only minor

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Mattias Gaertner
On Tue, 25 Dec 2012 12:55:41 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: [...] The numbers Martin names (up till 10 times slower, even without linking) are the numbers I have in mind too. IMHO denial without tests is unfair. Maybe the parallelization could be improved? This would

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Florian Klaempfl
Am 25.12.2012 15:28, schrieb Mattias Gaertner: On Tue, 25 Dec 2012 12:55:41 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: [...] The numbers Martin names (up till 10 times slower, even without linking) are the numbers I have in mind too. IMHO denial without tests is unfair. Maybe

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Mark Morgan Lloyd
Florian Klaempfl wrote: Am 25.12.2012 15:11, schrieb Paul Ishenin: 25.12.12, 21:59, Yury Sidorov ?: Hmm, Seems to be a false alarm :( I've made some tests just now with memory allocation and found that such pooling will not speed up the compiler too much. Only minor improvement such as

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Mark Morgan Lloyd
Sven Barth wrote: On 25.12.2012 13:24, Mark Morgan Lloyd wrote: Agreed. But combinations that don't compile meaningfully (e.g. the compiler targeting IA-64) or at all without at least backported patches (various RTLs including MacOS Classic, Amiga etc.) could IMO usefully be in compiler/attic

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: interest to implement such a CPU... *cough* m68k *cough* ;) Agreed. But combinations that don't compile meaningfully (e.g. the compiler targeting IA-64) or at all without at least backported patches (various RTLs including MacOS Classic,

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Dimitri Smits
- Oorspronkelijk e-mail - Van: Florian Klaempfl flor...@freepascal.org Aan: FPC developers' list fpc-devel@lists.freepascal.org Verzonden: Dinsdag 25 december 2012 14:15:24 Onderwerp: Re: [fpc-devel] Forwarded message about FPC status I see no way to speed up the 2.x FPC

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Mattias Gaertner
On Tue, 25 Dec 2012 18:01:50 +0100 Florian Klaempfl flor...@freepascal.org wrote: Am 25.12.2012 15:28, schrieb Mattias Gaertner: On Tue, 25 Dec 2012 12:55:41 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: [...] The numbers Martin names (up till 10 times slower, even without

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Sven Barth
On 25.12.2012 18:12, Mark Morgan Lloyd wrote: Sven Barth wrote: On 25.12.2012 13:24, Mark Morgan Lloyd wrote: Agreed. But combinations that don't compile meaningfully (e.g. the compiler targeting IA-64) or at all without at least backported patches (various RTLs including MacOS Classic,

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Sven Barth
On 25.12.2012 18:10, Mark Morgan Lloyd wrote: Florian Klaempfl wrote: Am 25.12.2012 15:11, schrieb Paul Ishenin: 25.12.12, 21:59, Yury Sidorov ?: Hmm, Seems to be a false alarm :( I've made some tests just now with memory allocation and found that such pooling will not speed up the

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Florian Klaempfl
Am 25.12.2012 19:30, schrieb Dimitri Smits: I'm guessing that is NOT on a Windows platform? Every full build (it has been a while) I've ever done of the compiler on windows was at least a few minutes. It is windows: self compilation. No rtl building or whatever. The only approach I see to

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Florian Klaempfl
Am 25.12.2012 19:39, schrieb Mattias Gaertner: On Tue, 25 Dec 2012 18:01:50 +0100 Florian Klaempfl flor...@freepascal.org wrote: Am 25.12.2012 15:28, schrieb Mattias Gaertner: On Tue, 25 Dec 2012 12:55:41 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: [...] The numbers Martin names

Re: [fpc-devel] Forwarded message about FPC status

2012-12-25 Thread Sven Barth
On 25.12.2012 19:30, Dimitri Smits wrote: - Oorspronkelijk e-mail - Van: Florian Klaempfl flor...@freepascal.org Aan: FPC developers' list fpc-devel@lists.freepascal.org Verzonden: Dinsdag 25 december 2012 14:15:24 Onderwerp: Re: [fpc-devel] Forwarded message about FPC status I see

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Martin Schreiber
On Tuesday 25 December 2012 18:01:50 Florian Klaempfl wrote: Am 25.12.2012 15:28, schrieb Mattias Gaertner: On Tue, 25 Dec 2012 12:55:41 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: [...] The numbers Martin names (up till 10 times slower, even without linking) are the

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Mark Morgan Lloyd
Florian Klaempfl wrote: Am 25.12.2012 15:28, schrieb Mattias Gaertner: On Tue, 25 Dec 2012 12:55:41 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: [...] The numbers Martin names (up till 10 times slower, even without linking) are the numbers I have in mind too. IMHO denial without

Re: [fpc-devel] LLVM

2012-12-25 Thread Jeppe Græsdal Johansen
The IR changes syntax often, so using that will most likely cause version problems. The other option is to use C++ classes directly which apparently is more stable. I know i386, x86_64 and ARM works pretty good. I don't know about the few others. Compiling speed is very, very slow :) (when