I misread types.h and the gcc index.  You are correct.

 long = int

- Kal.

Guilherme Nelson F De Souza wrote:
> 
>    WHere did you get this from?  ;-)
> 
>    char = 8bits = 1byte
>    short = 16bits = 2bytes
>    int = 32bits = 4bytes
>    long = 32bits = 4bytes
>    long long = 64bits = 8bytes
> 
>    If you don't trust me, run this:
> 
> int main(void)  {
> 
>   printf ("Size: %d\n", sizeof(char));
>   printf ("Size: %d\n", sizeof(short));
>   printf ("Size: %d\n", sizeof(int));
>   printf ("Size: %d\n", sizeof(long));
>   printf ("Size: %d\n", sizeof(long long)); }
> 
> Size: 1
> Size: 2
> Size: 4
> Size: 4
> Size: 8
> 
> >Date: Fri, 18 Feb 2000 06:05:23 -0700
> >From: Kulwinder Atwal <[EMAIL PROTECTED]>
> >Subject: Re: [rtl] "Longer" Thread Periods
> >
> >For Linux on a 32-bit machine (Pentium):
> >
> >short = 8 bits
> >int = 16 bits
> >long = 32 bits = one word
> >long long = 64 bits = two words
> >
> >As you can see it turns out to be a very 'long long' time.
> >
> >- Kal.
> >
> >
> 
>            -------------< G. N. DeSouza >-------------
>            ---------< [EMAIL PROTECTED]>---------
>            --< http://rvl1.ecn.purdue.edu/~gnelson >--
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to