home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!unixhub.slac.stanford.edu!alhy
- From: alhy@unixhub.slac.stanford.edu (J. Scott Berg)
- Newsgroups: comp.unix.aix
- Subject: Re: xlf compiler preprocessors
- Message-ID: <4841@unixhub.SLAC.Stanford.EDU>
- Date: 26 Jul 92 00:48:52 GMT
- References: <4840@unixhub.SLAC.Stanford.EDU>
- Sender: news@unixhub.SLAC.Stanford.EDU
- Reply-To: alhy@unixhub.slac.stanford.edu
- Organization: Stanford University, dept of Physics / SLAC
- Lines: 30
- Nntp-Posting-Host: courant.slac.stanford.edu
-
- I got a response to my previous post that I cross-posted to here and
- to comp.unix.aix, and reading the response seems to indicate the
- following: You know the optimizations that you're used to getting
- with (OPT=2 or whatever on VM? They don't happen if you just say -O.
- You have to also invoke the preprocesser; to do some of the sensible
- stuff, it seems that the command line switches that you want are
- -O -Pk -Wp,-ROUNDOFF=3
- exactly like that (I do mean it when I put the comma there). The
- roundoff bit makes it do the arithmetic optimizations you'd expect at
- the cost of "to the very last bit" consistency between machines--this
- does not make roundoff error worse, just different on different
- platforms. Note this is for xlf 2.2; read the section on the -Pv
- preprocessor for the appropriate option for xlf 2.1 or whatever the
- previous one is. The machines that are at 3.1.7 seem to have 2.2 (at
- least mine does). Have fun all
-
- -Scott Berg
-
- --
- -------------------------------------------------------------------------------
- The opinions expressed here are, of course, my own and nobody else's.
- -------------------------------------------------------------------------------
- J. Scott Berg
- email: alhy@unixhub.slac.stanford.edu
- real mail: Varian Physics
- Stanford CA 94305-4060
- phone: (415) 926-4732 (w)
- (415) 328-8246 (h)
- -------------------------------------------------------------------------------
-
-