From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f57db,ee36987742d7d99d X-Google-Attributes: gidf57db,public X-Google-Thread: 111c93,5c187b9e0c78e85b X-Google-Attributes: gid111c93,public X-Google-Thread: 1094ba,5c187b9e0c78e85b X-Google-Attributes: gid1094ba,public From: mccalpin@gmp246.austin.ibm.com (McCalpin) Subject: Re: SPEC CFP2000 Fortran declarations Date: 2000/06/20 Message-ID: <8invu8$1iak$1@ausnews.austin.ibm.com>#1/1 X-Deja-AN: 636821615 References: <8e29bb$7th$1@nnrp1.deja.com> <394E8463.DF71ACA3@paralleldata.com> <394E90F8.9DBC14C4@moene.indiv.nluug.nl> Organization: IBM, Austin, Tx. Reply-To: mccalpin@austin.ibm.com Newsgroups: comp.lang.fortran,comp.os.linux.alpha,comp.benchmarks In article , Jan Vorbrueggen wrote: >Toon Moene writes: > >> On the comp-fortran-90 mailing list >> we noticed, when discussing a SPEC2000 Fortran entry, that apparently: >> >> INTEGER(8) >> >> slipped through. Hardly a Standard way of specifying a certain size >> INTEGER ... > > [...] > >When confronted with this issue, the CPU subcommittee agreed with leaving >the REAL declaration as is, making all integers of default type, and inserting >some explicit type conversions and constant kind declarations where necessary. >This is a thorny issue due to the implicit and varying actual type the default >types are mapped to. Also, I think there is only one compiler on the market >that uses KIND= instead of the usual KIND=bytes>, and its vendor is not represented in SPEC (not that that matters any). This is certainly perverse, since the standards committee went out of its way to both: * declare that specific values for KIND were not portable * provide a mechanism to generate values for KIND in a portable way Now it is true that the mechanism provided is verbose, but it is portable. Just go look up SELECTED_REAL_KIND() and SELECTED_INT_KIND(). -- John D. McCalpin, Ph.D. mccalpin@austin.ibm.com Senior Scientist IBM POWER Microprocessor Development "I am willing to make mistakes as long as someone else is willing to learn from them."