From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,85404311f8041f7a X-Google-Attributes: gidfa528,public X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-07-08 15:58:25 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!iad-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.sys.dec,comp.unix.tru64,comp.arch Subject: Re: Compaq kills Alpha Message-ID: 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> <9Organization: LJK Software Date: 8 Jul 2001 18:58:08 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 994633092 216.44.122.34 (Sun, 08 Jul 2001 22:58:12 GMT) NNTP-Posting-Date: Sun, 08 Jul 2001 22:58:12 GMT Organization: Verio Xref: archiver1.google.com comp.sys.dec:5403 comp.unix.tru64:3227 comp.arch:13324 In article <9iaj40$714$1@new-usenet.uk.sun.com>, Casper.Dik@Holland.Sun.Com (Casper H.S. Dik - Network Security Engineer) writes: > [[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]] Gee, I wish you would only mail this complaint to the offenders, even though I agree it is an offensive practice :-) > Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) writes: > >>"Getting rid of" a language-required check is difficult (unless the >>number being converted from something large to byte is known at >>compile time). > > But aren't most "byte" stores just stores of "large register holding > only 8 bits of data as guaranteed by the compiler and runtime" into > main memory? Surely ADA doesn't require runtime checks on the runtime > system? (I know you put a char in that register just now, but please > make sure it's still a char?) Certainly if compile-time analysis is possible, this is not an issue. Thus the Character datatype is not a problem. But many programmers will perform numeric manipulation with type Integer (since it comes to them naturally) and then store the results into a cell of type Short_Short_Integer (with conversion) later on. Certainly the programmers could do better, but the compiler has to do what they say. > Only when the code does some form of type coercion from int to byte you > will need to do a check; it's by no means certain that a trapping > store would help you as many cases probably involve reg,reg moves. While a hardware assist on store would not cover all cases, I thought the point was to make the check more efficient in software rather than relieve the compiler of all responsibility for understanding this issue. I do think most intermediate results (from the viewpoint of the programmer, not the compiler internals) are of type integer, even when destined to be stored in something smaller.