From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,5c187b9e0c78e85b X-Google-Attributes: gid111c93,public X-Google-Thread: f57db,ee36987742d7d99d,start X-Google-Attributes: gidf57db,public X-Google-Thread: 1094ba,5c187b9e0c78e85b X-Google-Attributes: gid1094ba,public From: Jan Vorbrueggen Subject: SPEC CFP2000 Fortran declarations Date: 2000/06/20 Message-ID: #1/1 X-Deja-AN: 636687901 References: <8e29bb$7th$1@nnrp1.deja.com> <8ijq6c$o0q$1@grendel.conectiv.net> <8ik3ek$1bj2$1@nserve1.acs.ucalgary.ca> <394E8463.DF71ACA3@paralleldata.com> <394E90F8.9DBC14C4@moene.indiv.nluug.nl> X-Trace: sunu789.rz.ruhr-uni-bochum.de 961486239 8015 134.147.176.178 (20 Jun 2000 07:30:39 GMT) Organization: Institut fuer Neuroinformatik, Ruhr-Universitaet Bochum, Germany NNTP-Posting-Date: 20 Jun 2000 07:30:39 GMT Newsgroups: comp.lang.fortran,comp.os.linux.alpha,comp.benchmarks 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 ... You'll notice something similar in facerec, where all REALs are declared as REAL(4). Initially, all INTEGERs where INTEGER(4) as well...until that lead to some problems with the Cray compiler (for which default types are equivalent to KIND=8). In part, this is due to my inexperience with F90's KIND system when writing the code. Also, SPEC had enough problems sorting out the various portability and correctness issues (including catering to compilers with borderline cases of optimitis) than to write and enforce a style guide for the three languages involved - that's how I see it from the outside as a concerned party, as it were. 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=, and its vendor is not represented in SPEC (not that that matters any). Jan