[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN] Running 64 bit prototype of TSVN 1.2.1 built with VS2005

From: Simon Large <simon_at_skirridsystems.co.uk>
Date: 2005-08-19 17:19:54 CEST

anahata@microrobotics.co.uk wrote:
> On Fri, Aug 19, 2005 at 08:28:24AM -0600, Joseph Galbraith wrote:
>
>>sizeof(long) != sizeof(int) AFAIK.
>
>
> I think:
>
> sizeof(long) >= sizeof(int)
>
> is closer to the truth.
> I'm sure it works that way with int and short.

These are (I think) the ANSI C requirements:

sizeof(short) <= sizeof(int) <= sizeof(long)

sizeof(int) >= 2
sizeof(long) >= 4

For small micros these rules sometimes get broken: for a PIC, int is 8
bits and long is 16 bits and short is 1 bit (!)

For most of the 32 bit systems I have seen int == long == 32 bits.

I think maybe the problem has more to do with pointer sizes in the 64
bit architecture.

Simon

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Aug 19 17:19:53 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.