From owner-freebsd-questions Sat Aug 28 9: 3:59 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp02.teb1.iconnet.net (smtp02.teb1.iconnet.net [209.3.218.43]) by hub.freebsd.org (Postfix) with ESMTP id 132F714D62; Sat, 28 Aug 1999 09:03:45 -0700 (PDT) (envelope-from babkin@bellatlantic.net) Received: from bellatlantic.net (client-117-193.bellatlantic.net [151.198.117.193]) by smtp02.teb1.iconnet.net (8.9.1/8.9.1) with ESMTP id MAA27166; Sat, 28 Aug 1999 12:00:06 -0400 (EDT) Message-ID: <37C8086A.2B9412FB@bellatlantic.net> Date: Sat, 28 Aug 1999 12:03:54 -0400 From: Sergey Babkin X-Mailer: Mozilla 4.07 [en] (X11; I; FreeBSD 3.0-980222-SNAP i386) MIME-Version: 1.0 To: Mark Ovens Cc: Thomas David Rivers , freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org, kdrobnac@mission.mvnc.edu Subject: Re: Intel Merced FreeBSD??? References: <199908271229.IAA35280@lakes.dignus.com> <37C7312B.EE446A5C@bellatlantic.net> <19990828020123.C291@marder-1> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark Ovens wrote: > > On Fri, Aug 27, 1999 at 08:45:31PM -0400, Sergey Babkin wrote: > > > > A funny thing is that Microsoft is porting essentially a > > 32-bit version of Windows to Merced. All the programs for > > Windows that want to use 64-bit support will have to be > > modified because the MS compiler defines both int and long > > as 32-bit. On the other hand the Unix compilers (at least > > UnixWare and as far as I understood that's the common Unix > > convention) provide a mode with 64-bit longs that gives > > certain degree of 64-bit awareness just by recompiling. > > > > marder-1:/usr/marko{57}% cat > size.c > #include > > int main (void) > { > printf("short == %d\n", sizeof(short)); > printf("int == %d\n", sizeof(int)); > printf("long == %d\n", sizeof(long)); > printf("long long == %d\n", sizeof(long long)); > > return(0); > } > ^D > marder-1:/usr/marko{57}% cc !$ > marder-1:/usr/marko{57}% ./a.out > short == 2 > int == 4 > long == 4 > long long == 8 > marder-1:/usr/marko{57}% > > And the same is true on SunOS 4.1.x as well (although not 100% sure > about "long long"). I was talking about compilers for the 64-bit machines. As far as I understood to make porting easier the major Unix vendors have agreed on 2 64-bit modes in addition to the compatibility 32-bit mode: - 32-bit int, 32-bit long, 64-bit long long, 64-bit pointers - 32-bit int, 64-bit long, 64-bit long long, 64-bit pointers While the 64-bit Windows NT has 32-bit int, 32-bit long, 64-bit long long, 32-bit pointers, 64-bit some special kind of pointers. Although I may be confusing something. -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message