Recent

Author Topic: Stressing Compiler  (Read 5786 times)

Lightning

  • Sr. Member
  • ****
  • Posts: 422
Stressing Compiler
« on: June 14, 2004, 12:45:34 pm »
I told some guys on a kylix forum that they should try Lazarus and one of them said "Did you compile more than 10 000 lines" i said not yet.
So i compiled simple assignings and if's in the OnCreate event of a form, slow but it works, now i tested with 30 000, verrrrry slooow, but it works, then 50000 compiler shows Panic: Compilation failed, so...
I test with 120 000 in kylix and in a few secs my program was running.
Suggestions:
Lose that ugly console on windows, Delphi uses dccxx.dll to compile instead of dcc32.exe, this must be fast, more secure, and the console version can use the same .dll/.so or build FPC into Lazarus.
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

neli

  • Jr. Member
  • **
  • Posts: 86
Stressing Compiler
« Reply #1 on: June 14, 2004, 01:27:37 pm »
Hmm, as lazarus itself is more than 100000 lines of code, it isn't a problem with the compiler. What compiler version are you using?

Lightning

  • Sr. Member
  • ****
  • Posts: 422
Stressing Compiler
« Reply #2 on: June 14, 2004, 01:48:46 pm »
1.9.3 040529
The ideea is that having much code _INSIDE_ an object procedure might be hard to compile.
Maybe there is too much memory used to keep track of objects while compiling/linking
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Stressing Compiler
« Reply #3 on: June 14, 2004, 01:56:24 pm »
If it is just one procedure, try putting it a simple test program and see, if the compiler still crashes. If it crashes, submit a bug report at http://www.freepascal.org/bugs.html

Lightning

  • Sr. Member
  • ****
  • Posts: 422
Stressing Compiler
« Reply #4 on: June 14, 2004, 02:29:24 pm »
Yes that's the problem, try this yourself.
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

 

TinyPortal © 2005-2018