delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/03/02/02:45:47

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Trace-PostClient-IP: 68.147.131.211
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT Invalid>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 16 bit integers
Organization: Systematic Software
Message-ID: <esd840d8dde7matafu4vd11bsvagshadkl@4ax.com>
References: <baec0bf0 DOT 0403012323 DOT 10896c3 AT posting DOT google DOT com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Lines: 18
Date: Tue, 02 Mar 2004 07:36:10 GMT
NNTP-Posting-Host: 24.71.223.147
X-Complaints-To: abuse AT shaw DOT ca
X-Trace: pd7tw3no 1078212970 24.71.223.147 (Tue, 02 Mar 2004 00:36:10 MST)
NNTP-Posting-Date: Tue, 02 Mar 2004 00:36:10 MST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On 1 Mar 2004 23:23:19 -0800 in comp.os.msdos.djgpp,
huli_ebtyt AT list DOT ru (Andrey) wrote:

>Why DJGPP reserves 4 instead of 2 bytes of memory for every int (not
>long or char) variable?

DJGPP runs in the native mode of 386 and higher processors with 32 bit
protected mode addresses (4GB) and data (+/-2G) instead of 8086
emulation mode with 20 bit real mode addresses (1MB) and 16 bit data
(+/-32K). 
Types int and long are identical under DJGPP and other protected mode
compilers, whereas types int and short are identical under real mode
compilers. 
-- 
Thanks. Take care, Brian Inglis 	Calgary, Alberta, Canada

Brian DOT Inglis AT CSi DOT com 	(Brian dot Inglis at SystematicSw dot ab dot ca)
    fake address		use address above to reply

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019