Article View: comp.lang.c.moderated
Article #1985Re: Why Use 'Int' Instead of 'Long'? (With today's compilers)
From: James Kanze US/ESC 60/3/141 #407...
Date: Thu, 15 Feb 1996 14:51
Date: Thu, 15 Feb 1996 14:51
17 lines
1441 bytes
1441 bytes
In article <4fp1o2$h99@solutions.solon.com> dtrg@st-andrews.ac.uk
(David Thomas Richard Given) writes:
|> On a related note, is it a truism that sizeof(void *) == sizeof(long int)?
|> It is on everything I've worked with, but is it universal?
Definitly not. It's not necessarily true on Intel based machines, for
example. (Hardly are rare architecture.) In unprotected (16 bit)
mode, there are compilation models with 16 bit pointers, but 32 bit
longs, and in protected mode, there is at least one compilation mode
with 48 bit pointers, but *NO* integral type longer than 32 bits.
--
James Kanze Tel.: (+33) 88 14 49 00 email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
Conseils, études et réalisations en logiciel orienté objet --
-- A la recherche d'une activité dans une region francophone
Technical Details
Message-ID:
<4fvha2$e4r@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4fjk00$nss@solutions.solon.com> <4fjp0k$p6m@solutions.solon.com> <4fp1o2$h99@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: James Kanze US/ESC 60/3/141 #40763 <kanze@lts.sel.alcatel.de> Newsgroups: comp.lang.c.moderated Subject: Re: Why Use 'Int' Instead of 'Long'? (With today's compilers) Date: 15 Feb 1996 08:51:46 -0600 Organization: Digital Solutions Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4fvha2$e4r@solutions.solon.com> References: <4fjk00$nss@solutions.solon.com> <4fjp0k$p6m@solutions.solon.com> <4fp1o2$h99@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com