ARM Technical Support Knowledge Articles

How do I enable parallel builds within Eclipse?

Applies to: DS-5

Answer

Enabling parallel builds within Eclipse can speed up compilation of large projects. The following instructions for enabling parallel builds are appropriate for Eclipse 3.7, as included in DS-5 5.8, for example. The instructions may vary if you are using a different version of Eclipse.

CDT Managed Build Project

  1. Select your project in Eclipse's Project Explorer view and select Properties from the Project menu.
  2. In the Properties dialog, select C/C++ Build, and then select the Behaviour tab.
  3. Select [All configurations] in the Configuration drop-down menu.
  4. Check the Use parallel build option, and either enter the number of parallel jobs to use or select Use optimal jobs number. This later setting causes Eclipse to dynamically choose the number of parallel jobs based on the number of CPUs in your computer.
  5. Click OK to save the changes.

Choosing a Suitable Number of Parallel Jobs

Choosing a suitable number of parallel jobs is a matter of trial-and-error. A good starting point is to configure the number of jobs equal to the number of CPUs in your computer. If your computer copes with this then you can try increasing the value to see whether this results in any further improvement. If your computer becomes too slow then decrease this value.

If you are using ARM Compiler you must be aware that each invocation of the assembler, compiler or linker consumes one license for the duration that the tool runs for. Using parallel builds is only likely to result in increased build time if you have sufficient licenses available for the number of jobs you have configured.

Attachments: build1.png

Article last edited on: 2012-02-02 14:44:43

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential