Sign in Join

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

Mailing lists / fpc-pascal / 2009-09

Compiling FPC itself with optimization

8 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

graemeg.lists

Hi,

How optimized is FPC itself when I do a 'make all' in the source directory? No optimization, memory optimized, speed optimized, all of the above, etc..

Can I improve performance of the 64bit FPC compiler for my Quad Core processor? If so, what parameters do I pass to the make command?

Regards,
- Graeme -

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

Reply by email

Marco van de Voort
to graemeg.lists

In our previous episode, graemeg.lists said:

Show quoted text 6 lines
How optimized is FPC itself when I do a 'make all' in the source directory? No optimization, memory optimized, speed optimized, all of the above, etc.. Can I improve performance of the 64bit FPC compiler for my Quad Core processor? If so, what parameters do I pass to the make command?

Which quad core? There are afaik at least four microarchitectures for x86_64 that have quadcores. I7, Core2 (depending on your viewpoint if that counts as a quadcore or a dual dualcore), Phenom and Phenom II.

Reply by email

graemeg.lists
to Marco van de Voort

2009/9/24 Marco van de Voort :

Which quad core? There are afaik at least four microarchitectures for x86_64 that have quadcores. I7, Core2 (depending on your viewpoint if that counts as a quadcore or a dual dualcore), Phenom and Phenom II.

I don't know which "model" mine is. Here is partial output from /proc/cpuinfo

--------- /proc/cpuinfo ----------------
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz stepping : 10
cpu MHz : 1998.000
cache size : 3072 KB
------------------------------

Regards,
- Graeme -

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

Reply by email

Reimar Grabowski
to graemeg.lists
I don't know which "model" mine is.

<snip>

model name : Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz

Sometimes you are just too funny, Graeme.

R.

A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?

Reply by email

Graeme Geldenhuys
to Reimar Grabowski

2009/9/24 Reimar Grabowski :

Sometimes you are just too funny, Graeme.

:-)

Does FPC actually differentiate optimization between Core2 vs i7 vs Phenom etc? Or does it group those into something like optimization level 3 (just an example) and detect currently used CPU itself (if not specified like in cross-compiling), where level 0 is not optimization and level 3 being full optimization.

Regards,
- Graeme -

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

Reply by email

Jonas Maebe
to graemeg.lists: How optimized is FPC itself when I do a 'make all' in the source directory? No…
graemeg.lists wrote
How optimized is FPC itself when I do a 'make all' in the source directory? No optimization, memory optimized, speed optimized, all of the above, etc..

For speed.

Can I improve performance of the 64bit FPC compiler for my Quad Core processor? If so, what parameters do I pass to the make command?

OPT="-Cppentiumm -Oppentiumm"

Note that the differences will probably be too small to notice in most programs.

Jonas

Reply by email

Jonas Maebe
to Jonas Maebe
Jonas Maebe wrote
> Can I improve performance of the 64bit FPC compiler for my Quad Core > processor? If so, what parameters do I pass to the make command? OPT="-Cppentiumm -Oppentiumm"

Sorry, that's for a 32 bit compiler. For a 64 bit compiler, there are no special options to use (since all of them are Pentiumm-class or above anyway).

Jonas

Reply by email