Thursday, November 5, 2009

Multicore Compiler Make

Tested today Jonas Maebe's multicore FPC build tip from the Recompiling new changes thread at the Free Pascal Community.
$ time ( cd ~/svn/fpc/trunk && make clean && make all OPT="-gl" && make install INSTALL_PREFIX=~ )
...
real 3m15.641s
user 2m16.350s
sys  0m28.710s
$ 

# vs

$ time ( cd ~/svn/fpc/trunk && make -j 2 clean && make -j 2 all OPT="-gl" && make -j 2 install INSTALL_PREFIX=~ )
...
real 2m44.049s
user 2m18.530s
sys  0m27.990s
$ 
Both runs were "hot cache" on a dual core PC.

No comments:

Post a Comment