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

Board-Mount DC/DC Converters in Medical Applications

March 27, 2024
AC/DC or board-mount DC/DC converters provide power for medical devices. This article explains why isolation might be needed and which safety standards apply.

Use Rugged Multiband Antennas to Solve the Mobile Connectivity Challenge

March 27, 2024
Selecting and using antennas for mobile applications requires attention to electrical, mechanical, and environmental characteristics: TE modules can help.

Voltage- and Current-Mode Control for PWM Signal Generation in DC-to-DC Switching Regulators

March 27, 2024
Learn voltage- and current-mode control technique for PWM-signal generation in switching-voltage regulators and where each application is best suited.

Highly Integrated 20A Digital Power Module for High Current Applications

March 20, 2024
Renesas latest power module delivers the highest efficiency (up to 94% peak) and fast time-to-market solution in an extremely small footprint. The RRM12120 is ideal for space...

Comments

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