From owner-freebsd-questions Tue Aug 31 3: 4:44 1999 Delivered-To: freebsd-questions@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id A8D0414EB2; Tue, 31 Aug 1999 03:04:32 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id LAA35103; Tue, 31 Aug 1999 11:02:06 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Tue, 31 Aug 1999 11:02:06 +0100 (BST) From: Doug Rabson To: Sergey Babkin Cc: Mark Ovens , Thomas David Rivers , freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org, kdrobnac@mission.mvnc.edu Subject: Re: Intel Merced FreeBSD??? In-Reply-To: <37C8086A.2B9412FB@bellatlantic.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 28 Aug 1999, Sergey Babkin wrote: > 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. Oh my god, please say it isn't true! Its the return of the Large Model... Much of my prejudices against Wintel were formed by trying to write programs in the large model. > > Although I may be confusing something. I sure hope so. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message