/[MITgcm]/MITgcm/tools/build_options/darwin_ppc_g77
ViewVC logotype

Contents of /MITgcm/tools/build_options/darwin_ppc_g77

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Sat Oct 25 17:13:49 2008 UTC (15 years, 5 months ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint62, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint61f, checkpoint61g, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.5: +11 -2 lines
add comments about REAL4_IS_SLOW: if this CPP-flag is undefined
(that's not the default), ini_cg3d.F requires lower optimization (-O1). This
appears to be g77 bug.

1 #!/bin/bash
2
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/darwin_ppc_g77,v 1.5 2006/02/13 13:11:19 mlosch Exp $
4 #
5 # tested on G4-PowerBook, 1GHz
6 # cc-compiler is available only with the Apple Developer Tools,
7 # so make sure that those are installed
8 # g77 can be optained from FINK: http://fink.sourceforge.net
9 #
10
11 CPP='/usr/bin/cpp -traditional -P'
12 FC=g77
13 LINK=g77
14
15 S64='$(TOOLSDIR)/set64bitConst.sh'
16 #EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend'
17 #EH3 MAKEDEPEND=makedepend
18 DEFINES='-DWORDLENGTH=4'
19 INCLUDES='-I/sw/include'
20 LIBS='-L/sw/lib'
21
22 # For IEEE, use the "-ffloat-store" option
23 if test "x$IEEE" = x ; then
24 FFLAGS='-Wimplicit -Wunused -Wuninitialized'
25 FOPTIM='-O3 -funroll-loops'
26 else
27 FFLAGS='-Wimplicit -Wunused -ffloat-store'
28 FOPTIM='-O0'
29 fi
30 #ifndef REAL4_IS_SLOW
31 # _RS expands into real*4 and statements such as
32 # MAX(ABS(aV3d),myNorm) in ini_cg3d.F do not work with 'g77 -O3',
33 # so we have to lower the optimization level here to -O1;
34 # not clear why this is so, similar statements do work in ini_cg2d.F
35 #NOOPTFILES='ini_cg3d.F'
36 #NOOPTFLAGS='-O1 -funroll-loops'
37 #else
38 NOOPTFLAGS=-O0
39 #endif /* REAL4_IS_SLOW */

  ViewVC Help
Powered by ViewVC 1.1.22