From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f891f,14f3fa9fb2c63b2d X-Google-Attributes: gidf891f,public X-Google-Thread: f678f,14f3fa9fb2c63b2d X-Google-Attributes: gidf678f,public X-Google-Thread: f4fd2,98945d3dc397bdb1 X-Google-Attributes: gidf4fd2,public X-Google-Thread: 102b75,14f3fa9fb2c63b2d X-Google-Attributes: gid102b75,public X-Google-Thread: f4ea4,98945d3dc397bdb1 X-Google-Attributes: gidf4ea4,public X-Google-Thread: 103376,14f3fa9fb2c63b2d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1993-12-13 17:44:39 PST Xref: gmd.de comp.lang.misc:5270 comp.lang.ada:8816 comp.arch:18127 comp.unix.osf.misc:826 comp.lang.dylan:1567 comp.lang.lisp:5048 Path: gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!decwrl!parc!boehm From: boehm@parc.xerox.com (Hans Boehm) Newsgroups: comp.lang.misc,comp.lang.ada,comp.arch,comp.unix.osf.misc,comp.lang.dylan,comp.lang.lisp Subject: Re: ANDF - some information Date: 13 Dec 1993 19:16:58 GMT Organization: Xerox Palo Alto Research Center Message-ID: <2eif3a$oe1@news.parc.xerox.com> References: <1993Dec2.134838.8047@webo.dg.com> <2e9sel$2in@disun41.epfl.ch> <2ecte0$b0q@schonberg.cs.nyu.edu> NNTP-Posting-Host: siria.parc.xerox.com dewar@cs.nyu.edu (Robert Dewar) writes: >Adding to Stefan's note about limitations of C as a universal language, there >is also the problem of lack of support for exceptions and checked >arithmetic. I'm not sure whether checked arithmetic is a big deal. A high quality implementation would probably have to do enough analysis to eliminate most of the checks anyway. A purely C language check requires on the order of 3 or 4 boolean operations on the 3 sign bits, plus a test. (E.g., signed addition overflow occurs iff the two arguments have the same sign bit, and the result sign is different.) And if you know that the C compiler is gcc, you can generate the appropriate assembly code for the architectures you know about. Does anybody have any measurements as to what you really lose there? Hans-J. Boehm (boehm@parc.xerox.com) Standard disclaimer ...