delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/08/17:43:03

From: Jared Stevens <stevja AT lineo DOT com>
Organization: Lineo Inc.
To: djgpp AT delorie DOT com
Subject: Datatype sizes
Date: Mon, 8 May 2000 15:27:51 -0600
X-Mailer: KMail [version 1.0.21]
MIME-Version: 1.0
Message-Id: <00050815311200.09858@sparky.lineo.com>
Reply-To: djgpp AT delorie DOT com

Hello -
In DJGPP, since it's a 32-bit compiler, when I make a variable of type char,
does it store that variable in a 32-bit slot in memory, or an 8-bit slot? I
heard somewhere that when you make a variable if it is smaller than 32 bits, it
will store it in a 32 bit slot. If it does do this, is there a way to make it
store a char in an 8-bit slot and an int in a 16 bit slot?
Thanks,

--
Jared Stevens

- Raw text -


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