SD TIMES BLOG
ahandy

Fog around Intel's compilers

by Alex Handy 01/12/2010 03:07 PM EST

Agner Fog is a computer science professor at the University of Copenhagen's college of engineering. As he puts it, “I have done research on microprocessors and optimized code for more than 12 years. My motivation is to make code compatible, especially when it pretends to be.”

Fog has written a number of blog entries about Intel's compilers and how they treat competing processors. In November, AMD and Intel settled, and Fog has written up a magnificent analysis of the agreement.

If you have any interest in compilers, and in Intel's compilers, you should definitely read his paragraph-by-paragraph read through.

Fog broke it down for me:

The machine code is actively testing for vendor ID before testing for any CPU models or instruction sets. When the vendor ID is not "GenuineIntel" then it chooses what Intel calls the "generic path", which is the least advanced among the possible paths, using the oldest instruction set for compatibility with old processors.

This happens in code generated by the Intel compiler if you allow CPU dispatching. It also happens in many Intel function libraries that are called from code compiled with the Intel compiler or with any other compiler, even if you are not explicitly asking for CPU dispatching
. — Agner Fog

The big question now is: Will Intel remove barriers to its compilers working on other processors? And thus far, no one seems to know the answer.

But Fog has written some code to solve the problem. You know. Just in case. He says it's "very easy. Remove the check for vendor ID and check for supported instruction sets only. I have made a small function library as a showcase to show how to do this and how to support all x86 platforms. http://www.agner.org/optimize/#asmlib"

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Share this link: http://www.sdtimes.com/blog/1572

Tags:

Intel

Comments

Add comment


 
 

biuquote
  • Comment




 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 

Download Current Issue
MAY 2012 PDF ISSUE

Need Back Issues?
DOWNLOAD HERE

Want to subscribe?


 
blogs tab
Creation
To write better software, cultivate your ability to be creative.
05/19/2012 07:40 PM EST

Slick...but who needs it?
compilr.com is a well-designed site and the folks behind it seem to have their heart in the right place. But...who needs it?
05/16/2012 12:45 PM EST

How to be a better software developer
Want to be a better developer? You won't get there by mastering an interesting language or learning a new set of APIs.
05/14/2012 12:18 PM EST

Wooing Galatea
Do yourself a favor and check out Galatea 2.2, a wonderful book by novelist Richard Powers.
05/12/2012 07:05 PM EST

The world as story
An artificial-intelligence system at Carnegie Mellon seeks to understand the world by making statements about it.
05/10/2012 06:39 AM EST

The Rise of the Brogrammer, or the Rise of the Sexist Programmer?
Women in Silicon Valley get vocal about sexist ads and campaigns that contribute to a tense work environment.
05/09/2012 03:14 PM EST

 

Events calendar tab
5/23/2012 to 5/24/2012
Chicago
IEG

6/3/2012 to 6/7/2012
Orlando
IBM Rational

6/10/2012 to 6/15/2012
Las Vegas
SQE

6/10/2012 to 6/15/2012
Las Vegas
SQE

6/11/2012 to 6/14/2012
Bellevue, Wash.
AMD