Re: [fpc-pascal] Pascal Ardiono (avr) library

2021-04-04 Thread Florian Klämpfl via fpc-pascal
>>> >>> And then, afterwards, once code has been generated for the whole 'block', >>> the register-allocator fills in the registers. And store/restores them when >>> needed. This can be done using an algorithm that uses a tree to 'peel-down' >>> (is this English?) all the solutions. Just like i

Re: [fpc-pascal] Pascal Ardiono (avr) library

2021-04-04 Thread Joost van der Sluis via fpc-pascal
Op 04-04-2021 om 15:43 schreef Florian Klämpfl via fpc-pascal: Am 04.04.2021 um 15:36 schrieb Joost van der Sluis via fpc-pascal : Op 04-04-2021 om 13:33 schreef Florian Klämpfl via fpc-pascal: Am 04.04.2021 um 12:50 schrieb Joost van der Sluis via fpc-pascal : Isn't it at least a goo

Re: [fpc-pascal] Pascal Ardiono (avr) library

2021-04-04 Thread Florian Klämpfl via fpc-pascal
> Am 04.04.2021 um 15:36 schrieb Joost van der Sluis via fpc-pascal > : > > > > Op 04-04-2021 om 13:33 schreef Florian Klämpfl via fpc-pascal: >>> Am 04.04.2021 um 12:50 schrieb Joost van der Sluis via fpc-pascal >>> : >>> >>> Isn't it at least a good practice to store self at Y. So we have

Re: [fpc-pascal] Pascal Ardiono (avr) library

2021-04-04 Thread Joost van der Sluis via fpc-pascal
Op 04-04-2021 om 13:33 schreef Florian Klämpfl via fpc-pascal: Am 04.04.2021 um 12:50 schrieb Joost van der Sluis via fpc-pascal : Isn't it at least a good practice to store self at Y. So we have Z free for other calculations and can access members directly using ldd (),y+(). But maybe t

Re: [fpc-pascal] Pascal Ardiono (avr) library

2021-04-04 Thread Florian Klämpfl via fpc-pascal
> Am 04.04.2021 um 12:50 schrieb Joost van der Sluis via fpc-pascal > : > > Isn't it at least a good practice to store self at Y. So we have Z free for > other calculations and can access members directly using ldd (),y+(). > > But maybe that's difficult? Using Y might be indeed difficult as

Re: [fpc-pascal] Pascal Ardiono (avr) library

2021-04-04 Thread Joost van der Sluis via fpc-pascal
Op 04-04-2021 om 12:50 schreef Joost van der Sluis via fpc-pascal: I came across some issues while doing this, but I can not remember all of them. Another one: (Also constant propagation) -O4, {$WRITEABLECONST OFF} # [19] a := DigitalPinToBitMask[5]; lds r18,(TC_sARDUINO_ss_DIGITA

Re: [fpc-pascal] Pascal Ardiono (avr) library

2021-04-04 Thread Jonas Maebe via fpc-pascal
On 04/04/2021 12:50, Joost van der Sluis via fpc-pascal wrote: > One thing is constant-propagation in combination with auto-inlining. It > would be really nice when calling PinMode with two constant parameters, > would only lead to setting the constant value at two memory locations. > (Between avr_

Re: [fpc-pascal] Pascal Ardiono (avr) library

2021-04-04 Thread Joost van der Sluis via fpc-pascal
Op 03-04-2021 om 20:42 schreef Florian Klämpfl via fpc-pascal: Am 03.04.2021 um 19:49 schrieb Joost van der Sluis via fpc-pascal : Hi all, During some spare free time I've ported parts of the Arduino AVR library to Free Pascal. So now it is possible to use things like 'DigitalWrite' and

Re: [fpc-pascal] Pascal Ardiono (avr) library

2021-04-03 Thread Joost van der Sluis via fpc-pascal
Op 03-04-2021 om 21:14 schreef Dimitrios Chr. Ioannidis via fpc-pascal: Στις 3/4/2021 8:49 μ.μ., ο/η Joost van der Sluis via fpc-pascal έγραψε: During some spare free time I've ported parts of the Arduino AVR library to Free Pascal. So now it is possible to use things like 'DigitalWrite' and 'D

Re: [fpc-pascal] Pascal Ardiono (avr) library

2021-04-03 Thread Dimitrios Chr. Ioannidis via fpc-pascal
Hi, Στις 3/4/2021 8:49 μ.μ., ο/η Joost van der Sluis via fpc-pascal έγραψε: Hi all, During some spare free time I've ported parts of the Arduino AVR library to Free Pascal. So now it is possible to use things like 'DigitalWrite' and 'Delay'. More info here: https://lazarussupport.com/intro

Re: [fpc-pascal] Pascal Ardiono (avr) library

2021-04-03 Thread Florian Klämpfl via fpc-pascal
> Am 03.04.2021 um 19:49 schrieb Joost van der Sluis via fpc-pascal > : > > Hi all, > > During some spare free time I've ported parts of the Arduino AVR library to > Free Pascal. So now it is possible to use things like 'DigitalWrite' and > 'Delay'. > > More info here: > https://lazarussup