[Dart-dev] [4102] DART/trunk/mkmf/mkmf.template.absoft.osx: more consistent FFLAGS examples, better comments

nancy at ucar.edu nancy at ucar.edu
Mon Oct 12 14:39:09 MDT 2009


An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/dart-dev/attachments/20091012/68bb39e9/attachment.html 
-------------- next part --------------
Modified: DART/trunk/mkmf/mkmf.template.absoft.osx
===================================================================
--- DART/trunk/mkmf/mkmf.template.absoft.osx	2009-10-06 17:47:25 UTC (rev 4101)
+++ DART/trunk/mkmf/mkmf.template.absoft.osx	2009-10-12 20:39:09 UTC (rev 4102)
@@ -19,7 +19,9 @@
 #    were lower-case symbols with trailing underscores, so DART must follow.
 #
 # There are some gotchas with this compiler. According to the User Guide:
+#
 #      -dp       "DEMOTE Double Precision to Real"
+#
 #      -N113     "Promote REAL and COMPLEX"    Without an explicit length 
 #                declaration, single precision REAL and COMPLEX data types 
 #                default to thirty-two bits or four bytes (KIND=4) and 
@@ -28,11 +30,18 @@
 #                precision equivalents (KIND=8). This option does not affect 
 #                variables which appear in type statements with explicit 
 #                sizes (such as REAL (KIND=4) or COMPLEX (KIND=4)).  
+#
 #      -f free   instructs compiler to accept source code written in the 
 #                format for Fortran 90/95 Free Source Form.
+#
 #      -reclen32 Causes the library to interpret the value specified for 
 #                RECL= in an OPEN statement as 32-bit words instead of bytes. 
 #
+#      -N26      Use this option to force the compiler to consider the byte 
+#                ordering of all unformatted files to be big-endian by default.
+#                The CONVERT specifier in the OPEN statement may be used to 
+#                override this setting for individual files. 
+#
 # FFLAGS   used all the time
 #     -YEXT_NAMES=LCS          lower case symbols
 #     -YEXT_SFX=_              trailing underscore
@@ -47,6 +56,10 @@
 #     -wabort                  treat all warnings as errors
 #     -Rb                      check array boundaries
 #     -Rc                      check array conformance (shapes)
+#     -Rs                      check that character substring expressions
+#                              do not specify a character index outside the 
+#                              scope of the character variable or 
+#                              character array element.
 #     -C                       full Checking (too much info ...)
 #
 # FFLAGS   useful for production (untested)
@@ -66,7 +79,8 @@
 NETCDF = /Users/thoar/Absoft
 INCS = ${NETCDF}/include
 LIBS = -L${NETCDF}/lib -lnetcdf
+ FFLAGS = -YEXT_NAMES=LCS -YEXT_SFX=_ -en -altiVec -O0 -Rb -Rc -g -p$(INCS)
 #FFLAGS = -YEXT_NAMES=LCS -YEXT_SFX=_ -en -altiVec -O0 -Rb -Rc -p$(INCS)
 #FFLAGS = -YEXT_NAMES=LCS -YEXT_SFX=_ -en -altiVec -O0 -N113 -f free -Rb -Rc -p$(INCS) -I$(INCS)
- FFLAGS = -YEXT_NAMES=LCS -YEXT_SFX=_ -en -altiVec -O0 -p$(INCS) -I$(INCS)
-LDFLAGS = -unixlib -p$(INCS) $(LIBS)
+#FFLAGS = -YEXT_NAMES=LCS -YEXT_SFX=_ -en -altiVec -O0 -Rb -Rc -N26 -p$(INCS) -I$(INCS)
+LDFLAGS = -unixlib $(FFLAGS) $(LIBS)


More information about the Dart-dev mailing list