Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 1999 11:02:06 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Sergey Babkin <babkin@bellatlantic.net>
Cc:        Mark Ovens <mark@dogma.freebsd-uk.eu.org>, Thomas David Rivers <rivers@dignus.com>, freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org, kdrobnac@mission.mvnc.edu
Subject:   Re: Intel Merced FreeBSD???
Message-ID:  <Pine.BSF.4.10.9908311100170.340-100000@salmon.nlsystems.com>
In-Reply-To: <37C8086A.2B9412FB@bellatlantic.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdio.h>
> > 
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9908311100170.340-100000>