Date: Thu, 6 Oct 1994 03:01:46 +0500 From: "Don L." To: eliz AT is DOT elta DOT co DOT il Cc: Brian Acton , djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: djgpp and the 386SX 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. I should have said to specify a "short int foobar", however in the K&R 2nd ed C book, it specifically says an "int" is either 16 or 32 bits depending on the host machine, page 36 I believe. Don ;) ///////////////////////////////////////////////////// Don L. Institute for Simulation and Training lopez AT vsl DOT ist DOT ucf DOT edu http://www.vsl.ist.ucf.edu/~lopez Nothing is real...... Reality is like a broken glass.... The harder you try and put it together.... The worse it looks.... /////////////////////////////////////////////////////