From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-Thread: fa528,85404311f8041f7a X-Google-Attributes: gidfa528,public X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-ArrivalTime: 2001-07-09 01:54:28 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Jack Patteeuw Newsgroups: comp.sys.dec,comp.unix.tru64,comp.arch Subject: Re: Compaq kills Alpha Date: Mon, 09 Jul 2001 04:56:18 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3B4971B2.756FCB0B@peoplepc.com> Reply-To: jjpatteeuw@nospam.peoplepc.com X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 References: <3B37351D.5080503@cli.de> <4495ef1f.0106281109.4b460a70@posting.google.com> <8PS_6.265783$p33.5339568@news1.sttls1.wa.home.com> <9hhtur$1oj9$2@info.cs.uofs.edu> <9hi2q1$hbs@augusta.math.psu.edu> <9hj3ch$qmi$1@pyrite.mv.net> <_Ay07.62$G_1.10702@newsread2.prod.itd.earthlink.net> <3B462723.8938B09B@peoplepc.com> <3B469F39.618E0ADE@igs.net> <3B46C8C7.E2AFF889@peoplepc.com> <3B471A6C.EE8715F5@igs.net> <$KhLsMn0xNNj@eisner.encompasserve.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.sys.dec:5412 comp.unix.tru64:3242 comp.arch:13341 Larry Kilgallen wrote: > > Storing into an signed byte from something larger should check > (in hardware or software) that the top n-7 bits have the same > value. Storing into an unsigned byte from something larger should > check (in hardware or software) that the top n-8 bits are zero. > > Absent hardware support, the Ada compiler has to do it in software. Sadly Larry, I believe that Ada is the only HLL that requires this. So all those kiddies out there learning C/C++ on MessDOS where everything (including pointers) is a long can't understand why they need to do checks for sign over flow or zero divide in their embedded application. (So what would you do if you got a dividie by zero exception on your engine controller while driving at 70 MPH, reboot and hope it doesn't happen again ?) Jack Patteeuw