C/C++ Compiler Targets Multicore Chips

June 22, 2006
Multicore chips bring more power to bear on a problem while lowering power consumption—but only if programmers can take advantage of their architecture. Parallelizing compilers for vector-processing single-instruction multiple-data (SIMD) architect

Multicore chips bring more power to bear on a problem while lowering power consumption—but only if programmers can take advantage of their architecture. Parallelizing compilers for vector-processing single-instruction multiple-data (SIMD) architectures is well understood. Yet symmetric multiprocessing (SMP) processor arrays are another matter.

CodePlay's auto-parallelization VectorC compiler makes this job manageable. Its approach is different from other explicit parallel programming environments like OpenMP. Programmers still have to identify areas within an application where parallelism will be useful, but the kind of annotation is relatively simple.

For example, sieve blocks identify the range where parallelism can be exploited (see the code). Special data types such as IntSum identify variables that will be replicated across multiple processors in a controlled fashion. Similar definitions are used to aggregate results. The idea is to minimize the job of the programmer even when dealing with legacy code.

The compiler checks dependencies and generates code that can fit a range of targets, including SIMD and singlecore processors. A key differentiator between it and other approaches is that the compiler's ability to generate code can be debugged on a single core platform. No changes to the source code are required to target a multicore platform. Debugging on a single core is significantly easier.

CodePlay
www.codeplay.com

Sponsored Recommendations

Near- and Far-Field Measurements

April 16, 2024
In this comprehensive application note, we delve into the methods of measuring the transmission (or reception) pattern, a key determinant of antenna gain, using a vector network...

DigiKey Factory Tomorrow Season 3: Sustainable Manufacturing

April 16, 2024
Industry 4.0 is helping manufacturers develop and integrate technologies such as AI, edge computing and connectivity for the factories of tomorrow. Learn more at DigiKey today...

Connectivity – The Backbone of Sustainable Automation

April 16, 2024
Advanced interfaces for signals, data, and electrical power are essential. They help save resources and costs when networking production equipment.

Empowered by Cutting-Edge Automation Technology: The Sustainable Journey

April 16, 2024
Advanced automation is key to efficient production and is a powerful tool for optimizing infrastructure and processes in terms of sustainability.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!