From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_05,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!cmcl2!yale!husc6!bu-cs!bzs From: bzs@bu-cs.BU.EDU (Barry Shein) Newsgroups: comp.lang.ada Subject: portability Message-ID: <3036@bu-cs.BU.EDU> Date: Fri, 19-Dec-86 21:18:01 EST Article-I.D.: bu-cs.3036 Posted: Fri Dec 19 21:18:01 1986 Date-Received: Sat, 20-Dec-86 03:13:25 EST Organization: Boston U. Comp. Sci. List-Id: >I wish I could honestly say "You can't be serious..." when you say that your >co-workers don't believe that a program in Ada (or any other HOL) will not >produce the same results when compiled into two different instruction set >architectures... >Unfortunately, I can believe that you know people who don't believe this. It's >a sad commentary on our profession that these people exist. > > Dave Emery > MITRE Corp. Now, now, let's not be sooo harsh. Issues like hardware representation of floating point numbers, their precision and accuracy, round-offs (eg. guard digits) during intermediate calculations and how the language deals with these differences (if at all) is a valid question. Machines can vary greatly in this respect and it could be critical (the original poster specifically spoke about generating the same output.) If the skeptics need to know if they can write some massive simulation using heavy floating point with deep convolutions and just ship it to another machine and assume it will behave the same they may have valid concerns, no? Just because it compiles and runs doesn't mean the answers will be correct. Thank heavens for those "naive" users to whom 'produces the same output' doesn't mean 'produces the same output give or take the following 10,000 subtle details of floating point hardware differences' (which of course could very well mean 'does not produce the same output'.) In fact, if this is the issue (and there are others, such as memory limits), then the answer can only be a big "maybe". There are no easy blanket answers, someone will have to do their homework. -Barry Shein, Boston University