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: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-Thread: fa528,85404311f8041f7a X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-07-10 10:08:56 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news-FFM2.ecrc.net!news.siemens.de!news.mch.sbs.de!not-for-mail From: Konrad Schwarz Newsgroups: comp.sys.dec,comp.unix.tru64,comp.arch Subject: Re: Compaq kills Alpha Date: Tue, 10 Jul 2001 19:08:00 +0200 Organization: SIEMENS AG Message-ID: <3B4B3670.B1CB8D25@mchpDOTsiemens.de> 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> <1yI17.850$6c1.158549@newsread2.prod.itd.earthlink.net> NNTP-Posting-Host: mhpa501c.mchp.siemens.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [de]C-CCK-MCD FS SBS (WinNT; I) X-Accept-Language: de,en Xref: archiver1.google.com comp.sys.dec:5515 comp.unix.tru64:3333 comp.arch:13499 mulp schrieb: > > Would you elaborate on this point? What arithmetic operations > > are required for byte operations, beyond the regular integer > > set, once you have signed (i.e., sign extension) byte loads? > > char a,b; > int c; > > a=b=128; > c=a+b; > > versus > > int a,b,c; > > a=b=128; > c=a+b; I don't understand this example. C expressions are always at least of size int. In the first case, you need to sign extend a and b from byte to word which is done with a signed byte load if a and b are stored in memory.