<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000066">
That's very encouraging.<br>
<br>
What are the particulars; i.e., is setting CC=icc, and having icc
specific<br>
libraries in the environment variables icc looks for by default <br>
sufficient, or do I need to pass these along as options to configure as
well?<br>
I can put icc specific flags in CFLAGS, CXXFLAGS, and indicate the
libraries<br>
in LDFLAGS, according to configure --help.  But I need to add the icc
specific <br>
options `-parallel -xT', and suppress any -mcpu, -mtune or -march
options <br>
that configure might otherwise deduce from <br>
MACHTYPE=powerpc-apple-darwin8.0 and HOSTTYPE=powerpc, which are <br>
set by the OS, and which cause gcc to inevitably select for the lowest
common <br>
denominator; e.g. i386.  <br>
<br>
I'm not sure why Apple declares the HOSTTYPE to be powerpc, when<br>
it is in fact, an Intel Mac.  Despite this, configure always figures it
out, and<br>
chooses the architecture as i386, but it never does better; i.e.,
recognizing<br>
that the machine has the full compliment of MMX and SSE1 - SSE3<br>
instruction sets.  In icc, all I need do is select -O2 -xT -parallel,
and that<br>
seems to give the best results.  However, if I set CFLAGS='-O2 -xT
-parallel', <br>
I'm worried that I'm going to override important Scheme options, like<br>
-fomit-frame-pointer and such.  Will configure add necessary additional<br>
arguments in addition to CFLAGS?  Also, I see how to disable or enable a<br>
features, in configure --help, but I'm not sure how I keep it from using<br>
incompatible CPU options, unless it only uses CFLAGS, and then I'm back<br>
in the same boat, trying to figure out if I need to add other flags,
like<br>
-fomit-frame-pointer.<br>
<br>
Maybe I'm making too much of this, but obviously I'm a bit confused.<br>
<br>
Clarification would be helpful.<br>
<br>
Thanks,<br>
<br>
--kyle<br>
<br>
<br>
<br>
<br>
Matthew Flatt wrote:
<blockquote cite="mid:20070806185732.4E06365009C@mail-svr1.cs.utah.edu"
 type="cite">
  <pre wrap="">At Mon, 6 Aug 2007 18:49:49 +0000 (UTC), Kyle Smith wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I'm wondering if anyone has attempted a compile of mzscheme
with Intel's icc compiler?  If so, I'd love to find out if there were
any rocks along the way to avoid.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
It worked fine the last time I tried. I don't remember whether I tried
to build 3m at the time, though.

Matthew

  </pre>
</blockquote>
</body>
</html>