Sign in Join

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

Mailing lists / fpc-devel / 2007-07

FPC on Intel and AMD dual core processors

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

Does FPC take any advantage of dual core or quad core processors? Intel or AMD? Also I'm developing mostly under Linux, but all our products get released for Windows and Linux. Would it make a difference which OS I use?

This makes me think [not related to FPC really] - Does Linux support the AMD dual core processors?

Regards,
- Graeme -

Reply by email

Daniël Mantione
to Graeme Geldenhuys

Op Wed, 4 Jul 2007, schreef Graeme Geldenhuys:

Show quoted text 7 lines
Hi, Does FPC take any advantage of dual core or quad core processors? Intel or AMD? Also I'm developing mostly under Linux, but all our products get released for Windows and Linux. Would it make a difference which OS I use?

FPC itself is single threaded. Your own applications can be multithreaded. Despite the benchmarks shown today, I believe FPC is so fast that transforming it into a multithreaded application isn't worth the effort at the moment.

This makes me think [not related to FPC really] - Does Linux support the AMD dual core processors?

Yes, of course. Linux on Opteron is what AMD big in the server market.

Daniël

Reply by email

Brad Campbell
to Graeme Geldenhuys: Does FPC take any advantage of dual core or quad core processors? Intel or AMD? Also I'm…
Graeme Geldenhuys wrote 7 lines
Hi, Does FPC take any advantage of dual core or quad core processors? Intel or AMD? Also I'm developing mostly under Linux, but all our products get released for Windows and Linux. Would it make a difference which OS I use?

I'm using it on a Core Duo here. The biggest issue I've found is a multi-threaded make of the entire source tree.

make -j3 will die as it tries to link a library that has not finished compiling yet. I've reverted to a single threaded build and it works fine. Just a race I guess. I've not actually written any multi-threaded code with FPC, but I suspect it will *just* work as it seems to use the base OS threading functions.

Brad

"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so." -- Douglas Adams

Reply by email

Jonas Maebe
to Brad Campbell
Brad Campbell wrote 6 lines
I'm using it on a Core Duo here. The biggest issue I've found is a multi-threaded make of the entire source tree. make -j3 will die as it tries to link a library that has not finished compiling yet. I've reverted to a single threaded build and it works fine. Just a race I guess.

No, it's simply that all dependencies are not specified in the makefiles. Doing so for all the individual units in each directory is a lot of work (like e.g. the rtl), and it's also not very easy in case one package depends on another (I still haven't found the correct way to do that).

Jonas

Reply by email