Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2001 16:47:31 +0100
From:      Rahul Siddharthan <rsidd@online.fr>
To:        ports@freebsd.org
Subject:   Intel C/C++ compiler
Message-ID:  <20011110164731.A9601@lpt.ens.fr>

next in thread | raw e-mail | index | archive | help
I got the Intel C/C++ compiler working on my machine,
   http://developer.intel.com/software/products/eval/  
I had to modify the install script (probably one can just install the
rpms by hand though...)  and set some environment variables (for the
license file and libraries).  Also, the binary is in a really weird 
location.  (/compat/linux/opt/intel/compiler50/ia32/bin/icc by default)
To get around all that, I created a shell script /usr/local/bin/icc as
follows:

#!/bin/sh
LM_LICENSE_FILE=/compat/linux/opt/intel/licenses/l_cpp.lic
LD_LIBRARY_PATH=/compat/linux/opt/intel/compiler50/ia32/lib
export LM_LICENSE_FILE
export LD_LIBRARY_PATH
/compat/linux/opt/intel/compiler50/ia32/bin/icc "$@"

This works nicely and "transparently".  The only remaining problem is
that this thing compiles, but does not link.  (It links if you make
some further symlinks, but then the executable does not run.)
However, I can link the objects with gcc, and then the executable runs
perfectly.  On some random code I tested it with, it seems 25% faster
than gcc 3.0 and 40% faster than gcc 2.95.  I haven't tested c++; the
notes say that g++ and c++ objects can't be linked together.

Is there a prettier way to achieve all this?  (Maybe some of the
experts are already shuddering at my ignorance and the ugliness
above). Has anyone tried it?

If not, is it worth making a port of this, with warning messages that
it can be used for compiling but not for linking?  I can have a shot
at it.  Or is this altogether too kludgy to bother about?  

(I think the fortran compiler should work too, I haven't tried it yet.
Both compilers should be very useful to people in the scientific
community.  From my point of view, the big drawback with this C
compiler is it doesn't seem to support complex numbers...)

Thanks - Rahul.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011110164731.A9601>