Re: [fpc-pascal] Which -Op??? parameter is appropriate

2010-02-26 Thread Graeme Geldenhuys
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/

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Which -Op??? parameter is appropriate

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

> 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.n...@ntlworld.com (David W Noon)
===
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Which -Op??? parameter is appropriate

2010-02-26 Thread 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/

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Which -Op??? parameter is appropriate

2010-02-26 Thread 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/

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal