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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d053083f91c271b2 X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: floating point problem Date: 1997/03/14 Message-ID: <1997Mar14.073448.1@eisner>#1/1 X-Deja-AN: 225448877 X-Nntp-Posting-Host: eisner.decus.org References: <5f0faa$6ok@mtinsc04.worldnet.att.net> <331ace4d.1427558395@news.mwci.net> <1997Mar5.083938.1@eisner> <1997Mar6.080211.1@eisner> <5fvqkr$7n7@mulga.cs.mu.OZ.AU> <1997Mar10.074953.1@eisner> <1997Mar12.095335.1@eisner> X-Nntp-Posting-User: KILGALLEN X-Trace: 858342896/22101 Organization: LJK Software Newsgroups: comp.lang.ada Date: 1997-03-14T00:00:00+00:00 List-Id: In article , dewar@merv.cs.nyu.edu (Robert Dewar) writes: > Larry said > > <<> The proper code is a little delicate, but is documented in the relevant >> Intel microprocessor manuals. Note that all DX chips, and of course all >> Pentiums have built-in floating-point, so this is really only a concern >> with ancient machines that you cannot purchase any longer. > > So I would gather one cannot do this test from Ada. >>> > > Of course you can, that is what machine insertions are for! Well that might be "using an Ada compiler", but I would hardly call it "from Ada". Aside from a tools choice issue it seems to me the same as calling an external program written in Assembler. Of course I have called from Ada to other languages for other purposes, but in this case (since I don't recall any test in the RM) I was hoping some language-lawyer would say that exceptions would surely be raised by some particular expression and thus I could intercept the exception. Naturally raising such exceptions would not be a viable approach if some implementations never "got that far". Larry