Recent

Author Topic: [solved] ressource file - how to configure as best pracitse?  (Read 519 times)

Nicole

  • Hero Member
  • *****
  • Posts: 745
[solved] ressource file - how to configure as best pracitse?
« on: January 05, 2023, 06:53:51 pm »
I found in the root directory groups of files by the name of e.g.
link2680.res
The grew more and more by time and this takes space.
If I delete them - nothing would happen, at least I do not recognize anything.

What is best style to work with resource files (these are, aren't they?).
How can I hinder, that they fill up my root directory?

And what about this *.dgb file?
To my mind it saves breakpoints etc, so quite useful things, you do not want to lose.
Never the less, its size goes into one direction: "larger".
A handful of breakpoints does not justify this size.
Is there a way to shrink it again without loosing my settings for a project?
« Last Edit: January 18, 2023, 05:00:50 pm by Nicole »

tetrastes

  • Sr. Member
  • ****
  • Posts: 379

PascalDragon

  • Hero Member
  • *****
  • Posts: 5053
  • Compiler Developer
Re: ressource file - how to configure as best pracitse?
« Reply #2 on: January 05, 2023, 07:29:51 pm »
I found in the root directory groups of files by the name of e.g.
link2680.res
The grew more and more by time and this takes space.
If I delete them - nothing would happen, at least I do not recognize anything.

The link*.res files are not resource files, but linker scripts. They are generated by FPC to create the final executable though normally they're deleted afterwards. Do you by chance use “Quick Compile” a lot?

And what about this *.dgb file?
To my mind it saves breakpoints etc, so quite useful things, you do not want to lose.
Never the less, its size goes into one direction: "larger".
A handful of breakpoints does not justify this size.
Is there a way to shrink it again without loosing my settings for a project?

It does not contain breakpoints (these are stored in the lps file), but it contains the debug information about the executable so that you are able to use the debugger at all. And yes, thus it correlates with code size.

Nicole

  • Hero Member
  • *****
  • Posts: 745
Re: ressource file - how to configure as best pracitse?
« Reply #3 on: January 16, 2023, 04:50:40 pm »
Thank you for the replies.
Yes, I use "Quick Compile" very often.

"syntax check" (the green check hook, which I loved in Delphi) somehow is buggy and seems not to find changed of files reliably.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5053
  • Compiler Developer
Re: ressource file - how to configure as best pracitse?
« Reply #4 on: January 17, 2023, 09:59:41 pm »
Yes, I use "Quick Compile" very often.

Then that explains it. “Quick Compile” calls the compiler with the -s option which will lead to the compiler to skip the linking phase and generate a linker script and a shell script to use that linker script to generate the final executable. Due to this the compiler itself won't delete the file. However the IDE could, it simply doesn't right now.

"syntax check" (the green check hook, which I loved in Delphi) somehow is buggy and seems not to find changed of files reliably.

I haven't checked the code, but that's probably done by the IDE itself and thus it won't use the same parser and logic as FPC itself does.

 

TinyPortal © 2005-2018