GMP and 64-bit systems
nightstrike at gmail.com
Sun Jun 1 17:49:54 CEST 2008
On 6/1/08, Patrick Pelissier <patrick.pelissier at gmail.com> wrote:
> I personally think that Windows-64 should be treated as a 32 bits
> system (ie. 32 bits mp_limb_t, etc..)
This is a bad idea.
> It is the will of Microsoft to treat Windows-64 like a 32 bits system
> (by setting long to 32 bits).
> I think we should respect this decision.
No, it is the will of Microsoft to allow developers to take *properly
written code* and be able to supply both 32-bit and 64-bit versions by
simply recompiling. No #defines, No code forks, no typedefs in the
code -- nothing. Just use the 64-bit compiler on the same exact code,
and you get a 64-bit binary. They had a whole pile of reasons for
doing it this way, and it's easy to make code support this model.
More information about the gmp-discuss