[fpc-devel] make -j for windows, number of cores?

Reinier Olislagers reinierolislagers at gmail.com
Sun Mar 16 09:42:40 CET 2014


The build faq (that I have) states:
"Due to some new developments with parallel compiling using the FPC
makefiles, make 3.80 is strongly recommended as of FPC 2.1.1 (januari
2007 and later). Unix people with dual cores and up to date source trees
might want to try ?make -j 2?."

With an eye on increasing fpcup [1] performance:
1. Does make -j work reliably on Windows, too?
2. I intend to detect the number of logical cores as per
http://wiki.lazarus.freepascal.org/Example_of_multi-threaded_application:_array_of_threads#1._Detect_number_of_cores_available.
and run that many jobs. Is that a good idea?
3. If somebody could extend the detection code wiki article for FreeBSD,
I would appreciate it ;)

Thanks,
Reinier


[1]
https://bitbucket.org/reiniero/fpcup/overview



More information about the fpc-devel mailing list