Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!mailrus!ames!pasteur!selenium.cchem.berkeley.edu!rob
From: rob@selenium.cchem.berkeley.edu (Robert Oyung)
Newsgroups: comp.sys.cbm
Subject: Re: C programming data sizes on the C64
Keywords: c programming C64
Message-ID: <4026@pasteur.Berkeley.Edu>
Date: 22 Jun 88 07:05:05 GMT
References: <310@accelerator.eng.ohio-state.edu>
Sender: news@pasteur.Berkeley.Edu
Reply-To: rob@selenium.cchem.berkeley.edu.UUCP (Robert Oyung)
Organization: University of California, Berkeley
Lines: 21

In article <310@accelerator.eng.ohio-state.edu> czei@accelerator.eng.ohio-state.edu (Michael S. Czeiszperger) writes:
>I was thinking about porting a C program to my C64, and was
>wondering what the data sizes would be.  How many bytes are
>the long, short, and int variables?
>
The two major C compilers for the C64 and C128 are "Power C" by Spinnaker 
and "Super C" by Abacus.  Most people have the "Power C" compiler.  I have 
the "Super C" compiler and can tell you the specs for its data types.

	 short        2 bytes  -32768 to +32767
	 int          2 bytes  same as above
	 long         4 bytes  -2147483648 to 2147483647
	 float        4 bytes  +/- 9.09E-77 to +/- 6.78E+74
						   accurate to 6 or 7 places
	 long float   8 bytes  same as above
                           accurate to 16 places

----------------------------------------------------------------------------
Robert Oyung                         rob@selenium.cchem.berkeley.edu
27 Longview Court
San Francisco, CA 94131