delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/07/23:15:36

Date: Fri, 7 Oct 1994 18:18:50 -0700 (PDT)
From: "Frederick W. Reimer" <fwreimer AT crl DOT com>
Subject: Re: djgpp and the 386SX
To: "Don L." <lopez AT vsl DOT ist DOT ucf DOT edu>
Cc: eliz AT is DOT elta DOT co DOT il, Brian Acton <brian_acton AT powertalk DOT apple DOT com>,
djgpp AT sun DOT soe DOT clarkson DOT edu

On Thu, 6 Oct 1994, Don L. wrote:

> On Wed, 5 Oct 1994 eliz AT is DOT elta DOT co DOT il wrote:
> 
> > > Off hand I don't know what the "-mno-486" flag does but by ANSI C 
> > > definitions, an signed integer as you have declared "i" to be; has the 
> > > maximum and minimum values of -32,767 to 32,767. You want to declare "i" 
> > 
> > Wrong!  GCC produces 32-bit code, which means int is 32 bit, not 16.  So
> > it can hold values upto 2 million.
> > 
> > 	Eli Zaretskii
> > 
> 
> No this is not wrong, it is completly dependent on the platform and compiler
> you are working with, for portablity reasons you should assume a 16-bit int. 
> Don ;)

Yes, I think it is wrong, What Eli is talking about is DJgpp (that is 
what this list server is about!).  If you want to talk about some other 
implementation of C, there are other mail groups available.  BUT, for the 
purposes of DJGPP, THIS compler DOES use 32-bit int's.  SO, the answer is 
definately -- WRONG!


Fred Reimer

+-------------------------------------------------------------+
| The views expressed in the above are solely my own, and are |
| not necessarily the views of my employer.  Have a nice day! |
| PGP2.6 public key available via `finger fwreimer AT crl DOT com`   |
+-------------------------------------------------------------+



- Raw text -


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