Re: [fpc-pascal] Cannot write datetime field on sqlite3 database on ARM

2021-03-10 Thread Toru Takubo via fpc-pascal
On 2021/03/10 16:07, Florian Klämpfl via fpc-pascal wrote: Am 10.03.2021 um 04:59 schrieb Toru Takubo via fpc-pascal : Can you please post the output of -va of the arm compiler and provide some information about the arm system you are using? The output message with -va option can be dow

Re: [fpc-pascal] Cannot write datetime field on sqlite3 database on ARM

2021-03-10 Thread Toru Takubo via fpc-pascal
On 2021/03/10 15:29, LacaK via fpc-pascal wrote: Dňa 9.3.2021 o 15:34 Toru Takubo via fpc-pascal napísal(a): On 2021/03/09 18:11, LacaK via fpc-pascal wrote: I did run test program on RaspberryPI: Linux+ARM and results are as expected. (FPC 3.2.0) -Laco. My compiler setting is below. Does s

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread Karoly Balogh via fpc-pascal
Hi, On Wed, 10 Mar 2021, Yuriy Sydorov via fpc-pascal wrote: > > Neither parameter may be necessary on Windows, but that's probably the > > only one. > > Android and MS-DOS targets also ignore -CX -XX * when using the internal linker... :) External linkers may be supported for these targets, jus

Re: [fpc-pascal] Is RV32I instruction set for RISC-V (embedded) supported?

2021-03-10 Thread Florian Klämpfl via fpc-pascal
> Am 10.03.2021 um 10:28 schrieb Bernd Mueller via fpc-pascal > : > > On 3/5/21 6:22 PM, Florian Klämpfl via fpc-pascal wrote: > >> It is not expected that it works as RiscV support is still work in >> progress, but it should work ;) I'll look into it. > > Thank you. For me, the compiler for

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread Yuriy Sydorov via fpc-pascal
On 10.03.2021 14:29, Jonas Maebe via fpc-pascal wrote: On 10/03/2021 13:17, Yuriy Sydorov via fpc-pascal wrote: On 10.03.2021 11:34, LacaK via fpc-pascal wrote: A.) I compile my (units) program/library with -CX -XX (set in Project Options) Just a small note: -CX -XX are not needed for the

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread Jonas Maebe via fpc-pascal
On 10/03/2021 14:51, Michael Van Canneyt via fpc-pascal wrote: > On Wed, 10 Mar 2021, Jonas Maebe via fpc-pascal wrote: > >> On 10/03/2021 14:33, LacaK via fpc-pascal wrote: >>> It will be nice have this in documentation. For example in >>> https://www.freepascal.org/docs-html/prog/progse30.html#x

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread LacaK via fpc-pascal
It will be nice have this in documentation. For example in https://www.freepascal.org/docs-html/prog/progse30.html#x195-207.3 At least explain: - relation of -CX and -XX Indeed. - what is to be removed: non-referenced non-virtual methods, global variables, and regular procedures/function

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread Michael Van Canneyt via fpc-pascal
On Wed, 10 Mar 2021, Jonas Maebe via fpc-pascal wrote: On 10/03/2021 14:33, LacaK via fpc-pascal wrote: It will be nice have this in documentation. For example in https://www.freepascal.org/docs-html/prog/progse30.html#x195-207.3 At least explain: - relation of -CX and -XX Indeed. I

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread Jonas Maebe via fpc-pascal
On 10/03/2021 14:33, LacaK via fpc-pascal wrote: > It will be nice have this in documentation. For example in > https://www.freepascal.org/docs-html/prog/progse30.html#x195-207.3 > > At least explain: > - relation of -CX and -XX Indeed. > - what is to be removed: non-referenced non-virtual m

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread LacaK via fpc-pascal
It will be nice have this in documentation. For example in https://www.freepascal.org/docs-html/prog/progse30.html#x195-207.3 At least explain: - relation of -CX and -XX - what is to be removed: non-referenced non-virtual methods, global variables, and regular procedures/functions - (may b

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread Jonas Maebe via fpc-pascal
On 10/03/2021 13:17, Yuriy Sydorov via fpc-pascal wrote: > On 10.03.2021 11:34, LacaK via fpc-pascal wrote: >> >> A.) I compile my (units) program/library with -CX -XX (set in Project >> Options) >> > > Just a small note: > > -CX -XX are not needed for the top-tier targets nowadays. The section >

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread Yuriy Sydorov via fpc-pascal
On 10.03.2021 11:34, LacaK via fpc-pascal wrote: A.) I compile my (units) program/library with -CX -XX (set in Project Options) Just a small note: -CX -XX are not needed for the top-tier targets nowadays. The section based smart linking is a default option in recent FPC versions. Yuriy. _

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread Sven Barth via fpc-pascal
LacaK via fpc-pascal schrieb am Mi., 10. März 2021, 10:34: > Hi, > > my goal is DO NOT include unused procedures, methods in final > program/library on Win32 target exe/dll. > > A.) I compile my (units) program/library with -CX -XX (set in Project > Options) > > B.) I did also experiments with WP

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread Jonas Maebe via fpc-pascal
On 10/03/2021 10:34, LacaK via fpc-pascal wrote: > 1. I did not notice difference between A and B (it seems like WPO did > not reduce size of EXE (may be that I do something wrong)) > 1.1 is there way how I can check which procedures were striped out or > vice-versa included? You can generate link

[fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread LacaK via fpc-pascal
Hi, my goal is DO NOT include unused procedures, methods in final program/library on Win32 target exe/dll. A.) I compile my (units) program/library with -CX -XX (set in Project Options) B.) I did also experiments with WPO: -OWall -FWprogram.wpo -Xs- (plus -Owall -Fwprogram.wpo) Questions

Re: [fpc-pascal] Is RV32I instruction set for RISC-V (embedded) supported?

2021-03-10 Thread Bernd Mueller via fpc-pascal
On 3/5/21 6:22 PM, Florian Klämpfl via fpc-pascal wrote: It is not expected that it works as RiscV support is still work in progress, but it should work ;) I'll look into it. Thank you. For me, the compiler for RV32I/RV32IMAC works already pretty well. Regards, Bernd. ___

Re: [fpc-pascal] Cannot write datetime field on sqlite3 database on ARM

2021-03-10 Thread Cappelletto Gabriele via fpc-pascal
It happened to me with firebird too. Same mistake. Il 08/03/21 02:31, Toru Takubo via fpc-pascal ha scritto: Hi, I am developing my app on Windows and building apps for other platforms by using cross compiler. Now I have a problem only occurred on Linux ARM. The problem is that it cannot writ