Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-core-dev] Re: [cdt-dev] Proposed modifications to CDT for 64-bit support

> 
> Hi,
> 
> My comments are marked with two stars **.
> 
> P.S. What is the proper mailing list to continue our discussion? Initial
> mail was sent to three of them but I think we can use only one now. What
> about cdt-dev@xxxxxxxxxxx?
> 

cdt-core-dev

> 
>   cdt-core-home/docs
> 
> Some initial reactions:
> 
> 	- CDT assumes that long is 32bit length however it is 64 bit
> 	length on Linux 64bit platforms and 32 bit length on Windows
> 64bit platform
> 
>  * Is not "long" define to be 32 bits in ANSI C ?  or did you mean "int"
> ** As far as I know ANSI C/C++ defines these types as follows
> sizeof(char)<=3Dsizeof(short)<=3Dsizeof(int)<=3Dsizeof(long)<=3Dsizeof(lo=
> ng
> long). So its up to the system define the size of the long and the fact
> is on 64-bit systems it is 32-bit on windows and 64-bit on linux. The
> rest of primitive types are identical.
> 

Yes, you are right.  I've been using sizeof(long) == 32 for so long
that it was taken for granted.

[.. good explanations deleted ..]

To get this going I would recommand to make PR for each component
and patches separately.  This will allow better review and faster acceptance
then a Jumbo patch.   Do the debug last ... We are working on a proposal
to change the CDI interface, this interface was lacking in some aspects.




Back to the top