Andrew Poelstra <as...@sfu.ca> writes: > ... To the best of my knowledge, gcc uses a 32-bit long > even on 64-bit systems, to maintain compatibility with old code. > This was true last I checked, a year or two ago.
main(){printf("%lx\n",(long)(-1));} yields ffffffffffffffff with gcc (Debian 4.4.4-13) 4.4.5 20100902 (prerelease) in aggreement with > On a 64 bit systems, pointers are going to be 64 bits -- after all, > that is why you are going to 64 bits. The C spec says "longs shall be > big enough to hold a pointer" so that you can cast pointers and longs, > and can union pointers and longs. -- Stephan _______________________________________________ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user