Re: [fpc-devel] Kit's ambitions!

2018-06-13 Thread J. Gareth Moreton
I haven't fully uncovered the secrets of the compiler yet, but I did notice "pre- peephole pass" under x86, but I think the only functions it touched was one of the bit shifts. Does this occur before register allocation or was it just something that had to be done before Pass 1? Gareth On

Re: [fpc-devel] Proposal for 2 new compiler functions

2018-06-13 Thread J. Gareth Moreton
On Wed 13/06/18 20:28 , Florian Klämpfl flor...@freepascal.org sent: > Am 12.06.2018 um 14:42 schrieb J. Gareth Moreton: > > > Hi everyone, > > > > > > Sorry to flood the mailing list again with more > ideas and experiments. > > > > > I would like to propose introducing a new pair > of

Re: [fpc-devel] Kit's ambitions!

2018-06-13 Thread Florian Klämpfl
Am 12.06.2018 um 23:27 schrieb J. Gareth Moreton: Ideally yes, but this occurs after peephole optimisations where all of the register allocations have already been made. Doing the peephole and deep optimisations while the registers are still in a virtual state would be better overall, but may

Re: [fpc-devel] Proposal for 2 new compiler functions

2018-06-13 Thread Florian Klämpfl
Am 12.06.2018 um 14:42 schrieb J. Gareth Moreton: Hi everyone, Sorry to flood the mailing list again with more ideas and experiments. I would like to propose introducing a new pair of in-built functions for the compiler. function FLog2(X: Cardinal): Cardinal; function CLog2(X: Cardinal):

Re: [fpc-devel] Kit's ambitions!

2018-06-13 Thread Florian Klämpfl
Am 12.06.2018 um 23:45 schrieb nick...@gmail.com: On Mon, 2018-06-11 at 21:07 +0100, J. Gareth Moreton wrote: Thanks David, I'm still learning some of the nuances of the Intel and AMD processors, but most of it is just logical analysis. Admittedly my main drive has been to shrink down the

Re: [fpc-devel] targetandroid

2018-06-13 Thread Jonas Maebe
On 13/06/18 17:40, Adriaan van Os wrote: Yuriy Sydorov wrote: On 6/4/2018 2:51 PM, Adriaan van Os wrote: Yuriy Sydorov wrote: No special version is needed, use 3.0.4 release sources or trunk sources. I have fpc-3.0.4 installed on OS X 10.6.8. In a separate 3.0.4 sources folder, I issue  

Re: [fpc-devel] targetandroid

2018-06-13 Thread Adriaan van Os
Karoly Balogh (Charlie/SGR) wrote: Hi, On Wed, 13 Jun 2018, Adriaan van Os wrote: Yuriy Sydorov wrote: No special version is needed, use 3.0.4 release sources or trunk sources. I have fpc-3.0.4 installed on OS X 10.6.8. In a separate 3.0.4 sources folder, I issue make clean

Re: [fpc-devel] targetandroid

2018-06-13 Thread Karoly Balogh (Charlie/SGR)
Hi, On Wed, 13 Jun 2018, Adriaan van Os wrote: > >> Yuriy Sydorov wrote: > >>> No special version is needed, use 3.0.4 release sources or trunk > >>> sources. > > I have fpc-3.0.4 installed on OS X 10.6.8. In a separate 3.0.4 sources folder, > I issue > > make clean crossall crossinstall

Re: [fpc-devel] targetandroid

2018-06-13 Thread Adriaan van Os
Yuriy Sydorov wrote: On 6/4/2018 2:51 PM, Adriaan van Os wrote: Yuriy Sydorov wrote: No special version is needed, use 3.0.4 release sources or trunk sources. I have fpc-3.0.4 installed on OS X 10.6.8. In a separate 3.0.4 sources folder, I issue make clean crossall crossinstall

Re: [fpc-devel] Proposal for 2 new compiler functions

2018-06-13 Thread J. Gareth Moreton
I started to think about such names while sleeping on it. Something like BitCount would work splendidly for FLog2, and a note in the documentation can be made to show the similarity to the binary logarithm. BinSearchSize is a little restrictive, but I'm sure something similar can be found.