Forum > FPC development

[SOLVED] Poor optimization of constant folding

<< < (5/5)

440bx:
At least for me, compilation speed changes the way I program.

With Delphi and FPC, I do a full build every few lines of code, sometimes as few as 1 or 2 lines, build, place a breakpoint on the new code and execute under the debugger.  By the time I'm done, the amount of testing left to do is often relatively small.  This is because, even a 75,000 line program takes less than half a second to build (and, by today's standards, my machine is slow - 2.8Ghz, 10+ year old quad core)

When using C, it's a different ballgame, compiling 75,000 lines takes more than 5 seconds and that's already enough to break the smooth flow of edit/build/test.  Even a make in C usually takes longer than a full build of the same (ported) project in FPC/Delphi.

One thing that should be stated is that, during development, it really doesn't make much sense to build with deep optimizations since that gets in the way of debugging (a debugger is an excellent testing/verification tool.)

Martin_fr:
"Plugin" discussion moved: https://forum.lazarus.freepascal.org/index.php/topic,64791.0.html

runewalsh:

--- Quote from: runewalsh on September 27, 2023, 11:42:56 am ---Until the fix in mid-2030s

--- End quote ---

I’m a pessimist on purpose so bug fixes can be pleasant surprises.

Navigation

[0] Message Index

[*] Previous page

Go to full version