Date: Thu, 16 May 2002 06:47:39 -0400 (EDT) From: Thomas David Rivers <rivers@dignus.com> To: rivers@dignus.com, tlambert2@mindspring.com Cc: audit@FreeBSD.ORG, current@FreeBSD.ORG, fenner@research.att.com, knu@iDaemons.org Subject: Re: moused(8): char signed-ness problem with gcc 3.1 Message-ID: <200205161047.g4GAldU47929@lakes.dignus.com> In-Reply-To: <3CE33321.B2FBD340@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert <tlambert2@mindspring.com> wrote: > Thomas David Rivers wrote: > > Well - it's not counter-intuitive on many machines... For example, > > on the IBM mainframe - there is an instruction to load a character > > into a register - but not one that loads *and* sign-extends. So, > > you can get much better code if characters are unsigned by default. > > Sounds like time to get out the wire wrap tools... and fix the > hardware, not the software. Ha! That may not be a bad idea :-) > > > So in our C/C++ compilers for the mainframe, the default is > > unsigned as well. > > > > I wonder if the AIX people were looking for mainframe > > compatibility in this decision, or was it motivated > > by the PowerPC instruction set? Does anyone know what > > the Mac default is (since they are PowerPC based as well?) > > RS/6000's didn't used to use PPC processors at all; so it's > probably intentional software compatability. I'm confused then - the one we have here seems to. There was a version of something very RS/6000-like that didn't, but I thought RS/6000s did... - Dave Rivers - -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205161047.g4GAldU47929>