Sign in Join

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

Mailing lists / fpc-devel / 2024-11

Thread and process count during compilation?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Martin Frb

Following up some question on the forum:
https://forum.lazarus.freepascal.org/index.php/topic,69149.msg537855.html#msg537855

I wanted to confirm one of my assumptions.

If I start compiling a project (on any single file which could be program or library or unit, and could use other units that need to be compiled for it).

So if I run one instance of fpc
  fpc -options  ONE_FILENAME

Then I should expect 2 processes, each process with one single thread? One process for fpc
One process for the target specific ppc___

And that is all?
The one ppc will go through all the units needed?
Or will it launch further ppc processes? (which would need to make sure that they don't eventually launch 2 ppc processes for one file recursively used via multiple of the primary used units)

Reply by email

Sven Barth
to Martin Frb

Martin Frb via fpc-devel schrieb am Di.,
12. Nov. 2024, 11:12:

Show quoted text 23 lines
Following up some question on the forum: https://forum.lazarus.freepascal.org/index.php/topic,69149.msg537855.html#msg537855 I wanted to confirm one of my assumptions. If I start compiling a project (on any single file which could be program or library or unit, and could use other units that need to be compiled for it). So if I run one instance of fpc fpc -options ONE_FILENAME Then I should expect 2 processes, each process with one single thread? One process for fpc One process for the target specific ppc___ And that is all? The one ppc will go through all the units needed? Or will it launch further ppc processes? (which would need to make sure that they don't eventually launch 2 ppc processes for one file recursively used via multiple of the primary used units)

Correct for FPC itself, though of course the ppc might start additional processes like fpcres, as or ld.

Regards,
Sven

Reply by email