From mboxrd@z Thu Jan 1 00:00:00 1970 From: "erik quanstrom" To: devon.odell@gmail.com, "Charles Forsyth" , 9fans@cse.psu.edu References: In-Reply-To: Subject: Re: [9fans] 64-Bit programming model. Message-Id: <20050930190101.3CAC094755@dexter-peak.quanstro.net> Date: Fri, 30 Sep 2005 14:01:01 -0500 Cc: Topicbox-Message-UUID: 92ad957e-ead0-11e9-9d60-3106f5b1d025 actually, i think it's worse than that. enough #ifdefs will make a given set of programs work, after much hand tweaking, but for each new program, you need to add even more #ifdefs. Charles Forsyth writes | | > At least in Solaris the #define for both amd64 and SPARC64 is `LP64'. | > This is found in one of the include files under feature_tests.h (see | > cvs.opensolaris.org). | | yes, they went for the model where long changes size like pointers. | the difference is that relatively few applications see pointer representations | but quite a few rely on shifts, masks, etc. of `long' that are functions of 32 not 64. | | but obviously enough ifdefs will compensate for everything, as usual!