Re: [fpc-devel] r40027 break. Patch available.

2018-10-25 Thread Pierre Muller
Hi all, Le 25/10/2018 à 07:50, J. Gareth Moreton a écrit : > Hi everyone, > > As Pascal Riekenberg reported, the recent update to the trunk causes FPC to > not compile on some platforms, specifically x86_64.  I have provided what is > hopefully a long-term fix over here: > https://bugs.freepas

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Sven Barth via fpc-devel
Simon Kissel schrieb am Do., 25. Okt. 2018, 08:54: > - Complete the LLVM branch of FPC. It looks like Jonas has stopped > working on it two years ago, which is a pity. > I personally don't think that LLVM is the way to go. It's essentially a moving target and adds an unnecessary dependency to

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Michael Van Canneyt
On Sat, 20 Oct 2018, Simon Kissel wrote: - Make Exception handling, TLS etc use the infrastructure that libpthread is providing TLS is handled already by libpthread. I doubt you will gain much there. However, Exception handling is a problem. There are 2 possible ways ahead: - DWARF excepti

Re: [fpc-devel] The 15k bounty: Optimizing executable speed forLinux x86 / LLVM

2018-10-25 Thread J. Gareth Moreton
I would argue how such a bounty would be rewarded here because overall performance gains have been done by multiple submitters. For example, I've submitted a number of improvements to the optimiser to produce both smaller and faster machine code. And unfortunately not many of us have access

[fpc-devel] Fwd: Re: [FPC 0034456]: r40027 breaks build

2018-10-25 Thread J. Gareth Moreton
Accidentally sent to just Pierre. - Original Message --- -- From: J. Gareth Moreton gar...@moreton-family.com To: "Pierre Muller" pie...@freepascal.org Sent: Thu 25/10/18 07:14 Subject: Fwd: Re:

Re: [fpc-devel] The 15k bounty: Optimizing executable speed forLinux x86 / LLVM

2018-10-25 Thread Michael Van Canneyt
On Thu, 25 Oct 2018, J. Gareth Moreton wrote: I would argue how such a bounty would be rewarded here because overall performance gains have been done by multiple submitters. For example, I've submitted a number of improvements to the optimiser to produce both smaller and faster machine co

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Sven Barth via fpc-devel
Michael Van Canneyt schrieb am Do., 25. Okt. 2018, 09:38: > > > On Sat, 20 Oct 2018, Simon Kissel wrote: > > > - Make Exception handling, TLS etc use the infrastructure that > > libpthread is providing > > TLS is handled already by libpthread. I doubt you will gain much there. > > However, Excep

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Martin Schreiber
On Thursday 25 October 2018 11:18:58 Sven Barth via fpc-devel wrote: > > I'm against emulating SEH. Better implement DWARF exceptions. The > infrastructure that was created for SEH inside the compiler should help > nevertheless. > MSElang has some code for "Itanium ABI Zero-cost Exception Handling"

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Michael Van Canneyt
On Thu, 25 Oct 2018, Sven Barth via fpc-devel wrote: Michael Van Canneyt schrieb am Do., 25. Okt. 2018, 09:38: On Sat, 20 Oct 2018, Simon Kissel wrote: - Make Exception handling, TLS etc use the infrastructure that libpthread is providing TLS is handled already by libpthread. I doubt

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Michael Van Canneyt
On Thu, 25 Oct 2018, Martin Schreiber wrote: On Thursday 25 October 2018 11:18:58 Sven Barth via fpc-devel wrote: I'm against emulating SEH. Better implement DWARF exceptions. The infrastructure that was created for SEH inside the compiler should help nevertheless. MSElang has some code for

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Sven Barth via fpc-devel
Michael Van Canneyt schrieb am Do., 25. Okt. 2018, 11:51: > > > On Thu, 25 Oct 2018, Sven Barth via fpc-devel wrote: > > > Michael Van Canneyt schrieb am Do., 25. Okt. > 2018, > > 09:38: > > > >> > >> > >> On Sat, 20 Oct 2018, Simon Kissel wrote: > >> > >>> - Make Exception handling, TLS etc use

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Joao Schuler
Hello Simon - wondering if you have code examples that provoke problems you are experiencing? It will be easier to measure/test improvements with test cases. Solutions might not come from a single person/team and therefore not sure how to apply the bounty in the most effective/fair way. ___

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Michael Van Canneyt
On Thu, 25 Oct 2018, Sven Barth via fpc-devel wrote: Personally I am also in favour of a more open technique instead of a technique which is proprietary to a platform, and in this sense I understand and endorse your point of view, but beggars can't be choosers. There is no problem to have b

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Sven Barth via fpc-devel
Michael Van Canneyt schrieb am Do., 25. Okt. 2018, 14:55: > > > On Thu, 25 Oct 2018, Sven Barth via fpc-devel wrote: > > > > >> Personally I am also in favour of a more open technique instead of a > >> technique which is proprietary to a platform, and in this sense I > >> understand > >> and endo

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Sven Barth via fpc-devel
Michael Van Canneyt schrieb am Do., 25. Okt. 2018, 09:38: > > > On Sat, 20 Oct 2018, Simon Kissel wrote: > > > - Make Exception handling, TLS etc use the infrastructure that > > libpthread is providing > > TLS is handled already by libpthread. I doubt you will gain much there. > GCC has (depend

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Michael Van Canneyt
On Thu, 25 Oct 2018, Sven Barth via fpc-devel wrote: Michael Van Canneyt schrieb am Do., 25. Okt. 2018, 09:38: On Sat, 20 Oct 2018, Simon Kissel wrote: - Make Exception handling, TLS etc use the infrastructure that libpthread is providing TLS is handled already by libpthread. I doubt

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Karoly Balogh (Charlie/SGR)
Hi, On Thu, 25 Oct 2018, Michael Van Canneyt wrote: > >>> - Make Exception handling, TLS etc use the infrastructure that > >>> libpthread is providing > >> > >> TLS is handled already by libpthread. I doubt you will gain much there. > >> > > > > GCC has (depending on the platform) a faster imple

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Florian Klaempfl
Am 25.10.2018 um 17:38 schrieb Karoly Balogh (Charlie/SGR): Hi, On Thu, 25 Oct 2018, Michael Van Canneyt wrote: - Make Exception handling, TLS etc use the infrastructure that libpthread is providing TLS is handled already by libpthread. I doubt you will gain much there. GCC has (dependi

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Florian Klaempfl
Am 25.10.2018 um 11:18 schrieb Sven Barth via fpc-devel: Michael Van Canneyt > schrieb am Do., 25. Okt. 2018, 09:38: On Sat, 20 Oct 2018, Simon Kissel wrote: > - Make Exception handling, TLS etc use the infrastructure that >  libpthread is providin

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Florian Klaempfl
Am 25.10.2018 um 09:06 schrieb Sven Barth via fpc-devel: Simon Kissel > schrieb am Do., 25. Okt. 2018, 08:54: - Complete the LLVM branch of FPC. It looks like Jonas has stopped   working on it two years ago, which is a pity. I personally don't

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Jonas Maebe
On 20/10/18 16:07, Simon Kissel wrote: - Complete the LLVM branch of FPC. It looks like Jonas has stopped working on it two years ago, which is a pity. I didn't stop working on it, but I didn't make real progress anymore either. The current state of the LLVM code generator is that everythin

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Karoly Balogh (Charlie/SGR)
Hi, On Thu, 25 Oct 2018, Florian Klaempfl wrote: > >> That is good news. The contours of a TODO list are becoming visible :) > >> > >> But we may need also need a solution for other platforms, which means the > >> current system should remain in place for those platforms where such a > >> system

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Florian Klämpfl
Am 25.10.2018 um 18:59 schrieb Jonas Maebe: > On 20/10/18 16:07, Simon Kissel wrote: >> - Complete the LLVM branch of FPC. It looks like Jonas has stopped >>    working on it two years ago, which is a pity. > > I didn't stop working on it, but I didn't make real progress anymore either. > The cur

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Jonas Maebe
On 25/10/18 20:13, Florian Klämpfl wrote: Am 25.10.2018 um 18:59 schrieb Jonas Maebe: On 20/10/18 16:07, Simon Kissel wrote: - Complete the LLVM branch of FPC. It looks like Jonas has stopped    working on it two years ago, which is a pity. I didn't stop working on it, but I didn't make real

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Jeppe Johansen
On 10/20/18 4:07 PM, Simon Kissel wrote: The requirements for my bounty would be: - Must bring executable speed for non-Floating point load on both multihreaded and non-multithreaded workloads to the Speed of Kylix combined binaries - Improvements should also help on ARM targets - An LLV

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-10-25 Thread Sven Barth via fpc-devel
Am 25.10.2018 um 20:34 schrieb Jonas Maebe: On 25/10/18 20:13, Florian Klämpfl wrote: Am 25.10.2018 um 18:59 schrieb Jonas Maebe: On 20/10/18 16:07, Simon Kissel wrote: - Complete the LLVM branch of FPC. It looks like Jonas has stopped     working on it two years ago, which is a pity. I didn't

[fpc-devel] Another blocking bug

2018-10-25 Thread J. Gareth Moreton
Hi everyone, Sorry to be a pain, but it looks like there's another bug in FPC that blocks compilation on a particular platform: https://bugs.freepascal.org/view.php?id=34458 It seems a recent change to the PasToJS packages causes it to fail compilation on x86_64-win64.  SVN says the user "ma