Re: [fpc-devel] Error building xtensa rtl

2020-03-30 Thread Sven Barth via fpc-devel

Am 30.03.2020 um 22:07 schrieb Christo Crause via fpc-devel:


On Sun, Mar 29, 2020 at 11:00 PM Florian Klämpfl 
mailto:flor...@freepascal.org>> wrote:


Am 29.03.20 um 22:46 schrieb Christo Crause via fpc-devel:
> It seems that a different instruction sequence should be used
for sign
> extension for the lx106 subarch.

Ok, I see. Let me first integrate everything done so far in trunk,
then
we can continue with the details :)


I've noticed GCC uses the SLLI + SRAI instructions to perform sign 
extension on ESP8266.


Since different CPUs can support different subsets of the Xtensa 
instructions do you think a finalizecode type function can be used as 
a post code generation step to map unsupported instructions to 
alternative sequences?


These are simply different CPU types (-CpXXX or selected by the 
controller type) which the code generator will handle accordingly. Just 
like it's done with ARM, AVR and all other platforms.


Regards,
Sven
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC 3.2.0RC1 released!

2020-03-30 Thread Joao Schuler
Just tested with my own neural networks API and I can confirm that it works!
Environment: WIN10 64bits AVX

Tested with:
https://github.com/joaopauloschuler/neural-api/blob/master/examples/SimpleImageClassifier/SimpleImageClassifier.lpr


In this test, there is a performance gain (speed) against 3.0.4 at about 9%.

Congrats!
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Error building xtensa rtl

2020-03-30 Thread Florian Klämpfl

Am 30.03.20 um 22:07 schrieb Christo Crause via fpc-devel:


On Sun, Mar 29, 2020 at 11:00 PM Florian Klämpfl > wrote:


Am 29.03.20 um 22:46 schrieb Christo Crause via fpc-devel:
 > It seems that a different instruction sequence should be used for
sign
 > extension for the lx106 subarch.

Ok, I see. Let me first integrate everything done so far in trunk, then
we can continue with the details :)


I've noticed GCC uses the SLLI + SRAI instructions to perform sign 
extension on ESP8266.


Since different CPUs can support different subsets of the Xtensa 
instructions do you think a finalizecode type function can be used as a 
post code generation step to map unsupported instructions to alternative 
sequences?


In this case just cgcpu can be adapted to generate the right code. This 
results normally in better code.


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Error building xtensa rtl

2020-03-30 Thread Christo Crause via fpc-devel
On Sun, Mar 29, 2020 at 11:00 PM Florian Klämpfl 
wrote:

> Am 29.03.20 um 22:46 schrieb Christo Crause via fpc-devel:
> > It seems that a different instruction sequence should be used for sign
> > extension for the lx106 subarch.
>
> Ok, I see. Let me first integrate everything done so far in trunk, then
> we can continue with the details :)
>

I've noticed GCC uses the SLLI + SRAI instructions to perform sign
extension on ESP8266.

Since different CPUs can support different subsets of the Xtensa
instructions do you think a finalizecode type function can be used as a
post code generation step to map unsupported instructions to alternative
sequences?
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC 3.2.0RC1 released!

2020-03-30 Thread Pierre Muller


Le 30/03/2020 à 15:33, Mattias Gaertner via fpc-devel a écrit :
> On Sun, 29 Mar 2020 20:18:19 +0200
> Marco van de Voort  wrote:
> 
>> [...]
>> You can help improve the upcoming 3.2.0 release by downloading and
>> testing this release. If you want you can report what you have done
>> here: http://wiki.freepascal.org/Testers_3.2.0 or in the maillist.
> 
> It seems libpas2jslib.so needs some adjustments under debian:
> 
> From lintian:
> 
> Errors:
> unstripped-binary-or-object usr/lib/libpas2jslib.so
> library-not-linked-against-libc usr/lib/libpas2jslib.so
> shlib-with-executable-bit usr/lib/libpas2jslib.so 0755
> package-must-activate-ldconfig-trigger usr/lib/libpas2jslib.so
> 
> Warnings:
> 
> shlib-without-versioned-soname usr/lib/libpas2jslib.so libpas2jslib.so

  Michael,

  I remember that I was also asking why you did not put the shared lib
into the lib/fpc/3.2.0/lib subdirectory, but I forgot your explanation...


Pierre
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC 3.2.0RC1 released!

2020-03-30 Thread Michael Van Canneyt



On Mon, 30 Mar 2020, Mattias Gaertner via fpc-devel wrote:


On Sun, 29 Mar 2020 20:18:19 +0200
Marco van de Voort  wrote:


[...]
You can help improve the upcoming 3.2.0 release by downloading and
testing this release. If you want you can report what you have done
here: http://wiki.freepascal.org/Testers_3.2.0 or in the maillist.


It seems libpas2jslib.so needs some adjustments under debian:

From lintian:

Errors:
unstripped-binary-or-object usr/lib/libpas2jslib.so
library-not-linked-against-libc usr/lib/libpas2jslib.so


This one is not really fixable, that's simply a bug in debian.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC 3.2.0RC1 released!

2020-03-30 Thread Mattias Gaertner via fpc-devel
On Sun, 29 Mar 2020 20:18:19 +0200
Marco van de Voort  wrote:

>[...]
> You can help improve the upcoming 3.2.0 release by downloading and
> testing this release. If you want you can report what you have done
> here: http://wiki.freepascal.org/Testers_3.2.0 or in the maillist.

It seems libpas2jslib.so needs some adjustments under debian:

From lintian:

Errors:
unstripped-binary-or-object usr/lib/libpas2jslib.so
library-not-linked-against-libc usr/lib/libpas2jslib.so
shlib-with-executable-bit usr/lib/libpas2jslib.so 0755
package-must-activate-ldconfig-trigger usr/lib/libpas2jslib.so

Warnings:

shlib-without-versioned-soname usr/lib/libpas2jslib.so libpas2jslib.so

privacy-breach-generic
usr/share/doc/fpc-3.2.0/libxml2/examples/test1.xml [http://www.garmin.com;>] (http://www.garmin.com) 

Mattias
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel