Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-02

Which -Op??? parameter is appropriate

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

System used: Intel Core 2 Quad Q9400 @ 2.66GHz with 4GB memory FPC 2.4 64-bit under Ubuntu 8.04.2 LTS 64-bit

Which -Op??? can I use to optimize my application best for the above system?

Is -OpPENTIUMM better or worse than -OpPENTIUM4? Is any of them appropriate for a Core2Quad CPU?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Is -OpPENTIUMM better or worse than -OpPENTIUM4? Is any of them appropriate for a Core2Quad CPU?

OK, I think I answered my own question when I tried it on my projects.

-OpATHLON64 seems to be the option for my CPU type. 'fpc -i' gives you the available options. Lazarus IDE seems to use a hard-coded set of values, not actually what the current fpc compiler supports.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

David W Noon
to Graeme Geldenhuys

On Fri, 26 Feb 2010 11:16:53 +0200, Graeme Geldenhuys wrote about Re: [fpc-pascal] Which -Op??? parameter is appropriate:

Show quoted text 11 lines
Graeme Geldenhuys wrote: > > Is -OpPENTIUMM better or worse than -OpPENTIUM4? Is any of them > appropriate for a Core2Quad CPU? OK, I think I answered my own question when I tried it on my projects. -OpATHLON64 seems to be the option for my CPU type. 'fpc -i' gives you the available options. Lazarus IDE seems to use a hard-coded set of values, not actually what the current fpc compiler supports.

I always put my hardware-specific options in /etc/fpc.cfg, so that all users [of the compiler] on my systems get the right options for local usage of the compiled applications. Hopefully, Lazarus does not override them with any hard-coded values.

If I were shipping compiled binaries, I would take a more "lowest common denominator" approach, specifying an 80386 or some such. However, I don't have that problem.

Regards, Dave [RLU #314465] ======================================================================= (David W Noon) =======================================================================

Reply by email

Graeme Geldenhuys
to David W Noon
David W Noon wrote
If I were shipping compiled binaries, I would take a more "lowest common denominator" approach, specifying an 80386 or some such. However, I don't have that problem.

Yes, we do that for our released products too. I was simply playing around with optimisation settings to see what the different effects will be - using my own applications.

Interestingly enough I managed to let FPC throw Access Violations, Runtime errors and Linking errors during compiling, by playing with the various options and using the source code of the MSEide&MSEgui project.

I reported my tests to Martin from the MSEide project, but I don't know who is to blame for all those errors. FPC or MSEide? I couldn't duplicate those errors with other projects.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email