Compilation is very slow. Is it normal? lazarus / 13-General ---------------------------------------------------------------------- yesint · 2008-02-04 10:10 Dear All, I'm a long time Delphi user, but new to Lazarus. I'm running it under Fedora Core 6 on very fast machine. However, the compilation is terribly slow. It takes up to 30 s. to compile the "Hello world!" project (Delphi does this in a fraction of second). I thought that only the first compilation is so slow, but it is not the case - each compile takes ~20-30 s. The Lazarus home page claims that the openpascal compiler is very fast, but for me it is as slow as any gnu compiler. Is it normal? ---------------------------------------------------------------------- Marc · 2008-02-04 10:40 The compilation is fast, however linking on Linux is still done by the (slow) gnu linker. There are plans to use an internal linker, but it isn't implemented for linux yet. ---------------------------------------------------------------------- bee · 2008-02-04 11:46 Compile and linking on Linux is indeed slower than on Windows using internal linker. But I don't think it would be *that* slow. I just tested a 'hello world' Lazarus program on Ubuntu i386 on dual-core 2.0 GHz with 1 GB of RAM. First time compilation and linking took about 12-15 seconds including the debugger loading. Next compilation and linking, including debugger loading, only took 3-5 seconds. It is slow if compare to Delphi, but should be fast enough for development task. There's must be something wrong with your FPC or Lazarus configuration. ---------------------------------------------------------------------- LazaruX · 2008-02-04 14:50 15 seconds is really fast I think ---------------------------------------------------------------------- mrollings · 2008-02-04 16:19 I'm writing quite a large program for my final year project of a physics BSc, and my program gets built in about 2 seconds, and if i go straight for a run of the program it takes about 4 seconds. I'm on a fairly fast computer duel core 2.4Ghz E6600 2Gb ram, 30s seems way too long. ---------------------------------------------------------------------- Almindor · 2008-02-05 21:49 My ~20000 line game compiles (from clear-ed state) in about 4 seconds. Whatever is causing the slowness, it's not fpc. It's true that right now linux compilation + linking takes a bit longer than windows, but it's still quite fast compared to pre-internal linker windows FPC itself compiles in about 2 minutes here. AMD Turion 64@2000Mhz (using 64bit linux even!) ---------------------------------------------------------------------- carloscerv1975 · 2014-06-22 18:49 I have been working for 8 year with Delphi and now last 2 year I am working with Lazarus/FreePascal and I think that is better Lazarus/FreePascal in many forms. It is enough fast running in the same order, but the environment of development is better for my needings and it is my solution for 64 bits where I am working now with parallel process for hydrologic calculations. ---------------------------------------------------------------------- User137 · 2014-06-24 13:18 Reply only after noting that the thread got bumped from 6 years ago.