Add this blog to Del.icio.us, Digg or Furl | Create Watchlist for this blog

Intel C++ 10.0 for linux

Get the most out of it

I like gcc very much but now I have a Intel Core 2 Duo notebook, and I think it’s time to get the most out of it. That’s why I go for the Intel C++ 10.0 compiler today.

Intel provides a “free for non-commercial usage” download, that’s pretty nice and one more reason to give’em a try!

The other thing I am really interested in is the openMP integration. If you had troubles with pthreads you know why!

Start of my report

Go to the download page, confirm non-commercial agreement, register with email address, then start downloading the 45 MB package (in the IA32 version).

Untar the package and as root type
./install.sh

The installation went smooth, had to agree to several license agreements, answer some question (always took the default). Until suddenly:


Your platform :
architecture = i686
kernel = 2.6.18
glibc = glibc-2.5-25
operating system = unknown

This product is supported for use with the following combinations :

Machine Type Kernel glibc

IA-32/Intel(R) 64 2.4.x 2.2.5
IA-32/Intel(R) 64 2.4.x 2.2.93
IA-32/Intel(R) 64 2.4.x 2.3.2
IA-32/Intel(R) 64 2.6.x 2.3.x
IA-32/Intel(R) 64 2.6.x 2.4.x
IA-32/Intel(R) 64 2.6.x 2.5.x

Would you like to perform an unsupported install of this product [yes/no] (no) ? :

At this point I face my fear but typed YES.
After some other questions (always answer with default) I finally got the “successful” message:


Successfully installed:

Substitute Headers for Intel(R) C++ Compiler for applications running on IA-32, Version 10.0 (10.0.023)
intel-isubh100023-10.0.023-1.i386.rpm

Intel(R) C++ Compiler for applications running on IA-32, Version 10.0 (10.0.023)
intel-icc100023-10.0.023-1.i386.rpm

Intel(R) Debugger for applications running on IA-32, Version 10.0 (10.0.023)
intel-iidb100023-10.0.023-1.i386.rpm

Intel(R) C++ Compiler features and plugins for integration into Eclipse* CDT development environment, Version 10.0 (10.0.023)
intel-icc_ide100023-10.0.023-1.i386.rpm

Intel(R) Debugger features and plugins for integration into Eclipse* CDT development environment, Version 10.0 (10.0.023)
intel-idb_ide100023-10.0.023-1.i386.rpm

First compilation

My first compilation will be a “Hello World” as it is good tradition in the C business:

#include <stdio.h>

int main(int argc, char **argv)
{
        fprintf(stdout, "Hello ICC Worldn");

        return 0;
}

To get the icc environment up, Intel delivers a Shell-Script. Source it then compile like this:
source /opt/intel/cc/10.0.023/bin/iccvars.sh
icc hello.c

Then run the result:
./a.out
Watch the output and be happy :-)
Hello ICC World

This is so great! Tomorrow I’ll report on first experiences with openMP!
See you soon!

Social Bookmarking:
Add to social bookmarking sites.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • MisterWong
  • Furl
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati

And I've started a Drupal relaunch of my EDV Beratung now.

One Response to “Intel C++ 10.0 for linux”

  1. » Intel C++ 10, OpenMP & OpenSuSE Linux - Rainer Feike techblog » Blog Archive Says:

    […] Add this blog to Del.icio.us, Digg or Furl | Create Watchlist for this blog « Intel C++ 10.0 for linux […]

Leave a Reply

I appreciate all comments that add substantial content to my articles. I do not like "link-building" comments and I do not like "congratulation" comments. Every such like data posted here will go to akismet hell.