Deutsch English Français Italiano |
<vbsed2$tom$1@gal.iecc.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.iecc.com!.POSTED.news.iecc.com!not-for-mail From: John Levine <johnl@taugh.com> Newsgroups: comp.arch Subject: Re: is Vax addressing sane today Date: Wed, 11 Sep 2024 15:53:06 -0000 (UTC) Organization: Taughannock Networks Message-ID: <vbsed2$tom$1@gal.iecc.com> References: <vbd6b9$g147$1@dont-email.me> <2024Sep10.094353@mips.complang.tuwien.ac.at> <vbqtc0$10j8$2@gal.iecc.com> <vbra9e$3esph$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 11 Sep 2024 15:53:06 -0000 (UTC) Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="30486"; mail-complaints-to="abuse@iecc.com" In-Reply-To: <vbd6b9$g147$1@dont-email.me> <2024Sep10.094353@mips.complang.tuwien.ac.at> <vbqtc0$10j8$2@gal.iecc.com> <vbra9e$3esph$1@dont-email.me> Cleverness: some X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: johnl@iecc.com (John Levine) Bytes: 2296 Lines: 35 According to Thomas Koenig <tkoenig@netcologne.de>: >John Levine <johnl@taugh.com> schrieb: >> It appears that Anton Ertl <anton@mips.complang.tuwien.ac.at> said: >>>>The future of programming languages is type safe with checks, you need to >>>>get on that bandwagon early. >>> >>>MIPS got on that bandwagon early. It has, e.g., add (which traps on >>>signed overflow) in addition to addu (which performs modulo >>>arithmetic). It has been abandoned and replaced by RISC-V several >>>years ago. >> >> S/360 had signed and unsigned adds in the 1960s, with optional >> trapping for signed overflow. OS/360 let you catch the traps and z >> still does but it is not my impression that many programs did or do. > >With trapping, I understand. Without trapping - what is the >difference on a two's complement machine? Different condition codes. Signed add: 0 Sum is zero 1 Sum is less than zero 2 Sum is greater than zero 3 Overflow Unsigned add: 0 Sum is zero (no carry) 1 Sum is not zero (no carry) 2 Sum is zero (carry) 3 Sum is not zero (carry) -- Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly