High-End CPUs: Compilers Critical To CPUs Success

Feb. 16, 2004
Assembly language is indispensible for 8-bit microcontrollers, but out of place in the 64-bit world. In many cases, the processor architecture may be too complex for a programmer to take advantage of, let alone understand. Between pipelines,...

Assembly language is indispensible for 8-bit microcontrollers, but out of place in the 64-bit world. In many cases, the processor architecture may be too complex for a programmer to take advantage of, let alone understand. Between pipelines, caching, and branch prediction, the average assembly language programmer would lag behind an average compiler in code quality, not to mention the other advantages of using a high-level language.

Compilers are indispensible for Intel’s Itanium 2 EPIC architecture. The complexity problem is acute with EPIC, because an optimal code stream will likely need to significantly reorder the instructions to keep all execution units running. This is a straightforward exercise for a compiler, but agony for an assembly language programmer.

The problem is even more acute as more execution units are employed in a design. Though recompiling a program may be trivial, recoding in assembly is tedious at best and error-prone at worst.

System complexity, architecture idiosyncrasies, and timing details make proper instruction ordering important to deliver top system performance. SIMD utilization is another area where a compiler will make a processor shine. The ability of a compiler to exploit powerful hardware like the PowerPC AltiVec becomes even more important because of the difficulty in unrolling a number of embedded loops.

Two major changes have occurred in conjunction with the greater use of 64-bit systems. The first is higher performance of development systems, which allows for more optimizations and more complex optimizations. The second is the use of profile data, which enhances the compiler’s ability to optimize a program through subsequent compilations.

About the Author

William G. Wong | Senior Content Director - Electronic Design and Microwaves & RF

I am Editor of Electronic Design focusing on embedded, software, and systems. As Senior Content Director, I also manage Microwaves & RF and I work with a great team of editors to provide engineers, programmers, developers and technical managers with interesting and useful articles and videos on a regular basis. Check out our free newsletters to see the latest content.

You can send press releases for new products for possible coverage on the website. I am also interested in receiving contributed articles for publishing on our website. Use our template and send to me along with a signed release form. 

Check out my blog, AltEmbedded on Electronic Design, as well as his latest articles on this site that are listed below. 

You can visit my social media via these links:

I earned a Bachelor of Electrical Engineering at the Georgia Institute of Technology and a Masters in Computer Science from Rutgers University. I still do a bit of programming using everything from C and C++ to Rust and Ada/SPARK. I do a bit of PHP programming for Drupal websites. I have posted a few Drupal modules.  

I still get a hand on software and electronic hardware. Some of this can be found on our Kit Close-Up video series. You can also see me on many of our TechXchange Talk videos. I am interested in a range of projects from robotics to artificial intelligence. 

Sponsored Recommendations

Comments

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