Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread Michael Van Canneyt
On Tue, 16 May 2017, fredvs wrote: Michael Van Canneyt wrote On Tue, 16 May 2017, fredvs wrote: Michael Van Canneyt wrote What can be misunderstood about adding --gc-sections to the linker options if -XX is used on the command-line ? Ha, the way you present it seems to show that you did

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread fredvs
Marco van de Voort wrote > In our previous episode, Michael Van Canneyt said: >> > Does it work for all situations? I remember a bug for the rust >> compiler >> > that broke libraries when --gc-sections was used, because it removed >> the >> > metadata that rust needed to load the library. One

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread Sven Barth via fpc-pascal
Am 16.05.2017 16:10 schrieb "Jon Foster" : > There are only two software projects in the world that continue to impress me with each new release: the Linux Kernel and FPC, which amuses me since I remember the first version of FPC I saw. '99 I think it was. I laughed

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread noreply
On 2017-05-15 17:27, Graeme Geldenhuys wrote: On 2017-05-15 22:50, nore...@z505.com wrote: Graeme will need to clarify whether he was trying to be harsh on FPC entirely, or just specifically in some areas.. :-) I'll try and clarify... I believe FPC generates slow (or slower than Delphi, GCC

Re: [fpc-pascal] Best way to check SimpleIPC for messages

2017-05-16 Thread Sven Barth via fpc-pascal
Am 17.05.2017 07:08 schrieb : > > On 2017-05-15 04:36, Michael Schnell wrote: >> >> On 12.05.2017 16:37, Michael Van Canneyt wrote: >>> >>> >>> Check manually. What else is left ? There is no message queue, so no loop in which to check at regular basis. >>> >> For event

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread noreply
On 2017-05-16 09:10, Jon Foster wrote: I think the key word in Graeme's complaint is "game". And I'm willing to bet that most of his envisioned gaming scenarios deal with a lot of floating point math and the more advanced math functions. A quick glance over his example code and I'm willing to

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread noreply
On 2017-05-15 17:37, James Richters wrote: I have managed to get ptcgraph and ptccrt to work with my program and I can report that there is an AMAZING increase in graphics performance! It is pretty much a drop in replacement and I did not change any compiler settings. I did have to make a few

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread noreply
On 2017-05-16 03:15, fredvs wrote: noreply wrote On 2017-05-15 04:26, fredvs wrote: After lot of fight, there is a solution: using -*-gc-sections*. And the question was : /Why FPC does not provide --gc-sections to the linker with the -XX paramer for libraries ? (Bug ?) / Hopefully that's

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread Nikolay Nikolov
On 05/16/2017 09:00 AM, Sven Barth via fpc-pascal wrote: Am 16.05.2017 02:46 schrieb "Nikolay Nikolov" >: >> I also no longer have the 'graphwindow' handle variable so I had to comment out anything that was using it like >> >>

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread Nikolay Nikolov
On 05/16/2017 01:27 PM, James Richters wrote: > Hmm? But he only wants to change the title of the window. Even on Windows that should work from a different thread. However a platform independent SetWindowTitle() for ptcgraph would be rather useful I guess. I did a quick test and ran one

Re: [fpc-pascal] Partial text search in a dictionary

2017-05-16 Thread leledumbo via fpc-pascal
> However i would like to be able to do a partial text search on the strings, prefeably with a result as a list of matching string/object pairs but getting an index to the first matching pair would be fine. The match only has to be done from the first character of both strings, so a complex

Re: [fpc-pascal] Partial text search in a dictionary

2017-05-16 Thread Torsten Bonde Christiansen
On 2017-05-16 10:26, leledumbo via fpc-pascal wrote: However i would like to be able to do a partial text search on the strings, prefeably with a result as a list of matching string/object pairs but getting an index to the first matching pair would be fine. The match only has to be done from

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread Maciej Izak
2017-05-16 10:15 GMT+02:00 fredvs : > It works for all situations, so I propose that fpc add --gc-sections as > parameter for the linker if the user has used -XX parameter to compile a > library. > for features requests please use https://bugs.freepascal.org . -- Best

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread fredvs
Maciej Izak wrote > 2017-05-16 10:15 GMT+02:00 fredvs > fiens@ > : > >> It works for all situations, so I propose that fpc add --gc-sections as >> parameter for the linker if the user has used -XX parameter to compile a >> library. >> > > for features requests please use

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread Michael Van Canneyt
On Tue, 16 May 2017, fredvs wrote: Maciej Izak wrote 2017-05-16 10:15 GMT+02:00 fredvs fiens@ : It works for all situations, so I propose that fpc add --gc-sections as parameter for the linker if the user has used -XX parameter to compile a library. for features requests please

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread Henry Vermaak
On Tue, May 16, 2017 at 01:15:34AM -0700, fredvs wrote: > It works for all situations, so I propose that fpc add --gc-sections > as parameter for the linker if the user has used -XX parameter to > compile a library. Does it work for all situations? I remember a bug for the rust compiler that

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread Michael Van Canneyt
On Tue, 16 May 2017, Henry Vermaak wrote: On Tue, May 16, 2017 at 01:15:34AM -0700, fredvs wrote: It works for all situations, so I propose that fpc add --gc-sections as parameter for the linker if the user has used -XX parameter to compile a library. Does it work for all situations? I

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread Marco van de Voort
In our previous episode, fredvs said: > Nobody uses fpc library here ? Yes, but I don't care about size unless it is outrageous. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread fredvs
Michael Van Canneyt wrote > What can be misunderstood about adding --gc-sections to the linker > options if -XX is used on the command-line ? Ha, the way you present it seems to show that you did understand it ;-) OK, maybe is it time to add a feature request... Fre;D - Many thanks

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > Does it work for all situations? I remember a bug for the rust compiler > > that broke libraries when --gc-sections was used, because it removed the > > metadata that rust needed to load the library. One of the fpc devs can > > probably say

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread Michael Van Canneyt
On Tue, 16 May 2017, fredvs wrote: Michael Van Canneyt wrote What can be misunderstood about adding --gc-sections to the linker options if -XX is used on the command-line ? Ha, the way you present it seems to show that you did understand it ;-) OK, maybe is it time to add a feature

Re: [fpc-pascal] Best way to check SimpleIPC for messages

2017-05-16 Thread Michael Schnell
On 12.05.2017 16:37, Michael Van Canneyt wrote: Check manually. What else is left ? There is no message queue, so no loop in which to check at regular basis. For event processing in a not threaded project or in the main thread of a threaded project you at best use the Event Queue provided

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread Sven Barth via fpc-pascal
Am 16.05.2017 02:46 schrieb "Nikolay Nikolov" : >> I also no longer have the 'graphwindow' handle variable so I had to comment out anything that was using it like >> >> SetWindowTextA(graphicwindow,graphwindowtext); >> And >> ShowWindow(graphwindow, SW_SHOW); >> So I just

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread James Richters
> Hmm? But he only wants to change the title of the window. Even on Windows > that should work from a different thread. However a platform independent > SetWindowTitle() for ptcgraph would be rather useful I guess. I did a quick test and ran one program that did a writeln of it’s handle, then

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread fredvs
noreply wrote > On 2017-05-15 04:26, fredvs wrote: >> After lot of fight, there is a solution: using -*-gc-sections*. >> >> And the question was : >> >> /Why FPC does not provide --gc-sections to the linker with the -XX >> paramer >> for libraries ? (Bug ?) / > > > Hopefully that's all there

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread Jon Foster
On 05/15/2017 03:27 PM, Graeme Geldenhuys wrote: On 2017-05-15 22:50, nore...@z505.com wrote: Graeme will need to clarify whether he was trying to be harsh on FPC entirely, or just specifically in some areas.. :-) I'll try and clarify... I believe FPC generates slow (or slower than Delphi,

Re: [fpc-pascal] Size of program vs library ?

2017-05-16 Thread fredvs
Michael Van Canneyt wrote > On Tue, 16 May 2017, fredvs wrote: > >> Michael Van Canneyt wrote >>> What can be misunderstood about adding --gc-sections to the linker >>> options if -XX is used on the command-line ? >> >> Ha, the way you present it seems to show that you did understand it ;-) >>

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread Nikolay Nikolov
On 05/16/2017 02:45 PM, Nikolay Nikolov wrote: Tonight I'll also add the option for changing the title bar text, when in windowed mode. Unfortunately, I didn't have the time to do it tonight (I'm kinda bad at time estimates ;-) ), but I'll probably implement it during the weekend.

[fpc-pascal] List pre-defined defines

2017-05-16 Thread Jon Foster
I've looked several times over the years for a way to get fpc to dump all of the predefined "defines" for the target selected. Things like "fpc", "linux", "unix", "android", "cpuarm", "cpui386", ... and who knows what else. Seems like there ought to be an "-i?" switch for this. Have I just

Re: [fpc-pascal] List pre-defined defines

2017-05-16 Thread Mattias Gaertner
On Tue, 16 May 2017 14:45:42 -0700 Jon Foster wrote: > I've looked several times over the years for a way to get fpc to dump all > of the predefined "defines" for the target selected. Things like "fpc", > "linux", "unix", "android", "cpuarm", "cpui386", ... and

Re: [fpc-pascal] List pre-defined defines

2017-05-16 Thread Michael Van Canneyt
On Tue, 16 May 2017, Jon Foster wrote: I've looked several times over the years for a way to get fpc to dump all of the predefined "defines" for the target selected. Things like "fpc", "linux", "unix", "android", "cpuarm", "cpui386", ... and who knows what else. Seems like there ought to be

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread James Richters
>Yes, you can do this, if you set: > FullscreenGraph := true; I tried this and it does make a full screen graphics window without the windows title bar on top, which I like, however if I task switch out of the graphics window, then task switch back to it, my keyboard no longer responds via

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread James Richters
Join the bad time estimate club! The help is very much appreciated and whatever time you can allow for it great. James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Nikolay Nikolov Sent: Tuesday, May 16, 2017 5:42 PM To:

Re: [fpc-pascal] List pre-defined defines

2017-05-16 Thread Jon Foster
On 05/16/2017 02:53 PM, Mattias Gaertner wrote: On Tue, 16 May 2017 14:45:42 -0700 Jon Foster wrote: I've looked several times over the years for a way to get fpc to dump all of the predefined "defines" for the target selected. Things like "fpc", "linux",