avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avrdude-dev] Fix warnings patch


From: E. Weddington
Subject: Re: [avrdude-dev] Fix warnings patch
Date: Thu, 28 Aug 2003 22:14:06 GMT

> As E. Weddington wrote:
> 
> > Hold on.... Am I getting bit by machine sizes again? 
I'm assuming
> > that int = 2 bytes. Is int = 4 bytes on Linux (etc.)?
> 
> It's usually 4 bytes on any 32-bit machine, and often 
even on 64-bit
> machines.  So even in Win32, sizeof(int) == 32. ;-)

sizeof(int) == 4? ;-)

 
> Effectively, sizeof(int) == sizeof(long) == 32 for 
virtually any
> `host' computer these days (i. e. for non-embedded 
systems).  At the
> transition to 64-bit machines, somehow people didn't have 
the heart to
> default `int' to a 64-bit type, so they invented long 
long for the
> 64-bit types.

One of the few areas in C language where I think they 
screwed things up. *sigh* Also, one of the reasons why I 
prefer embedded microcontroller platforms....

Eric







reply via email to

[Prev in Thread] Current Thread [Next in Thread]