DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Dockerizing With a Custom JRE
  • Stateless vs. Stateful Widgets: Make the Right Choice for Your Flutter App
  • Securing the Software Supply Chain: Chainguard Builds on Foundational Innovation
  • Ensuring Reliable Microservice Deployment With Spring Boot Build Info Maven Plugin

Trending

  • Beyond the Prompt: Unmasking Prompt Injections in Large Language Models
  • Harnessing the Power of In-Memory Databases: Unleashing Real-Time Data Processing
  • The Promise of Personal Data for Better Living
  • No Spark Streaming, No Problem
  1. DZone
  2. Coding
  3. Frameworks
  4. Reducing Compile Time in Eclipse with Parallel Build

Reducing Compile Time in Eclipse with Parallel Build

Erich Styger user avatar by
Erich Styger
·
Jun. 05, 14 · Interview
Like (0)
Save
Tweet
Share
6.76K Views

Join the DZone community and get the full member experience.

Join For Free

feeling that building a project in eclipse (including kinetis design studio ) takes a long time? then probably the ‘parallel build’ option is not enabled in your project: using parallel build option reduces the needed time by factors. to give an example, to build a project with 56 source files takes 32 seconds without parallel build enabled:

no parallel build

no parallel build

with parallel build enabled this gets reduced down to less than 10 seconds:

parallel build enabled

parallel build enabled

:-)

‘parallel builds’ means that the ‘builder’ or make file does not compile one file after each other, but instead spawns a set of parallel builds. this is especially useful for host machines having multiple cores or cpu: such as each cpu then could do a compilation and balance the build load across all available cpus to cut the build time.

in eclipse codewarrior for mcu the parallel build is enabled by default (see “ using parallel builds: what is optimal? “). it is *not* enabled by default in standard eclipse kepler gnu arm eclipse projects or in the freescale kinetis design studio. as such, the build time needed for projects are taking a lot of time compared to codewarrior.

to speed up the build time, go to the project settings. i can enable ‘parallel build’ in the ‘behaviour’ tab of the c/c++ build group:

parallel build setting in behaviour tab

parallel build setting in behaviour tab

the number of ‘optimal jobs’ depends on the number of cpus of your machine (i have a machine with 8 cores).

the improvement of course depends on the number of cores and speed of your machine. three to five times improvements are typical on my machine.

there is only one possible drawback of the parallel build: if the project has a lot of compilation errors, the errors are reported ‘in parallel’ too: so if the project has many errors in many files, it is a good idea to turn parallel build off during the error fixing. apart of that: the parallel build option is great and i have turned it on whenever i can.

happy paralleling :-)

Build (game engine) Eclipse

Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Dockerizing With a Custom JRE
  • Stateless vs. Stateful Widgets: Make the Right Choice for Your Flutter App
  • Securing the Software Supply Chain: Chainguard Builds on Foundational Innovation
  • Ensuring Reliable Microservice Deployment With Spring Boot Build Info Maven Plugin

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: