Intel 8.0 compiler optimization switches

From: Peter Forthmann (peter_at_peterundsinje.de)
Date: 01/31/04


Date: Fri, 30 Jan 2004 18:09:24 -0800

Hi,

I am testing the Intel 8.0 Compiler for Linux. For all the sources I have compiled It produces a lot
faster code than the GNU g++ compiler. However, I must have something wrong, since I can't use the
-ipo and -xW options for interprocedural optimization and Pentium4 optimization, which is supposed
to give a lot of speed up on top.

When I add the -ipo switch everything compiles ok, but then I get the linker error:

/usr/bin/ld:cppobj/Debug_pf.o: file format not recognized; treating as linker script
/usr/bin/ld:cppobj/Debug_pf.o:1: parse error

With the -xW switch it compiles OK and tells me that it does some vectorization optimization, but
when it comes to linking, it errors out saying:

cppobj/spline_pf.o(.text+0x81): In function `CalcCubicSplineCoeffs(float*, int, float*)':
: undefined reference to `vmlsPow4'

Anybody an idea what could be wrong?

Thanks,

Peter.



Relevant Pages

  • Re: Brian Kernighan, maybe Im not worthy, maybe Im scum
    ... what experienced programmers do, ... optimization, ... Thugs" ad nauseum fits that a lot more closely than discussing compiler ... be modified outside a loop, and guessing ...
    (comp.programming)
  • long(!) Re: need help on CFLAGS in /etc/make.conf please
    ... For example, MPlayer sets this high on purpose, so GCC will actually ... and the K&R compiler would've known exactly the kind of optimization we wanted. ... >> A msg from Richard Coleman, taken together with the GCC 3.x Known Bugs ...
    (freebsd-questions)
  • Re: SETF and variable issues in Self Similar program.
    ... The way to get a compiler to optimize a tail-call ... call optimization turned on. ... It changes the semantics of the language in a big way. ... In Common Lisp it has to interact with condition handling, ...
    (comp.lang.lisp)
  • Re: Programming languages
    ... >> execution time, ... That's not a good candidate for optimization. ... if there is comething the compiler ... António> programmers and those can't cope with anything else than ...
    (sci.lang)
  • Re: Debugging and optimizations
    ... and compiler optimizations. ... Earlier in the week I was talking to a developer about optimization ... The problem is in the compiler not the source level debugging format. ... The compilers should be able to provide source level debug information ...
    (comp.programming)