[CMake] 64bit programming

Hendrik Sattler post at hendrik-sattler.de
Tue Aug 26 12:22:25 EDT 2008


Am Montag, 25. August 2008 18:09:37 schrieb Matthew Woehlke:
> Hendrik Sattler wrote:
> > Am Samstag, 23. August 2008 02:34:35 schrieb Matthew Woehlke:
> >> Don't make assumptions about sizeof(long) or sizeof(void*)... not even
> >> that they are the same (Microsoft, in their infinite wisdom, decided -
> >> as usual - to be different from everyone else and adopt a P64 model,
> >> rather than LP64 used by *everyone* else). That's the big thing. I don't
> >> know about kitware libraries, but I wouldn't expect much in the way of
> >> "gotchas" regarding 64-bit builds and cmake... at least, not on
> >> non-Windows platforms :-).
> >
> > Usually, that should never be a problem as casting from long to a pointer
> > and back is really good coding style in modern C (about the same as not
> > differing between function/code pointer and data pointers).
>
> Unless I misunderstood the above, you're missing "really good coding
> style in modern C **unless you ever want to support Windows**"...

Ups. -> s/is/isn't/
Or was it an ironic comment? Somewhere in between there...

HS



More information about the CMake mailing list