2.22 Minimizing compilation build time with parallel make

If you are using a makefile-based build environment, you could consider using a make tool that can apply some form of parallelism to minimize compilation build time.

For example, with GNU make you can typically use make -j N, where N is the number of compile processes you want to have running in parallel.

Even on a single machine with a single processor, a performance boost can be achieved. This is because running processes in parallel can hide the effects of network delays and general I/O accesses such as loading and saving files to disk, by fully utilizing the processor during these times with another compilation process.

If you have multiple processor machines, you can extend the use of parallelism with make -j N * M, where M is the number of processors.

Related concepts
2.18 Compilation build time
Related tasks
2.19 Minimizing compilation build time
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.