Recent

Author Topic: Code optimization  (Read 5077 times)

wildhemp

  • Newbie
  • Posts: 2
Code optimization
« on: December 07, 2004, 05:12:45 pm »
Hi,

I have a program with a lot of calculations. I've prted it to lazarus, and it happend, that the version built with delphi is 2.5 times faster. I've tried to play with the compiler options, like code optimization and se the target cpu, but nothing happend. Can I build a faster version somehow?

Thx,
Wildhemp

Adam.Pilorz

  • Jr. Member
  • **
  • Posts: 67
    • http://www.pilotmp3.devtown.net
Code optimization
« Reply #1 on: December 08, 2004, 02:24:33 pm »
Well, many people works on system, wich optimizes the code written in Delphi. On your position I would try to optimize it myself, I mean try to lower it's processor usage and time complexity.

Anonymous

  • Guest
Code optimization
« Reply #2 on: December 08, 2004, 02:43:21 pm »
Ok, but it's an optimized code. I think that the real problem is, that I can't compile it to a specified processor. Is there a way to compile my code to i686 platform? Maybe I'm worng, and the fpc compiles my code to the selected cpu, but if it's true, than why is it as slow as I compile it to i386?

Wildhep

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Code optimization
« Reply #3 on: December 09, 2004, 09:31:31 am »
In the compiler options, Code Tab, Target Processor GroupBox you can set the target processor. I don't how much fpc does with this setting.

 

TinyPortal © 2005-2018