chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] resubmission of win64 patch


From: John Cowan
Subject: Re: [Chicken-hackers] [PATCH] resubmission of win64 patch
Date: Thu, 6 Dec 2012 01:43:09 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

Felix scripsit:

> Note that the foreign types "integer" and "unsigned-integer" map to
> "long long" and "unsigned long long" (available as "C_long" and
> "C_ulong" in C code that uses "chicken.h") on this platform.

That doesn't make sense to me.  The Win64 memory model is LLP64: that is,
ints and longs are still 32 bits, and only pointers are 64 bits, unlike
the LP64 memory model of all other systems where ints are 32 bits and
longs and pointers are 64 bits.  So "integer" and "unsigned-integer"
should be the C types "long" and "unsigned long" in order to DTRT when
invoking Win64 C functions.

-- 
John Cowan           http://www.ccil.org/~cowan            address@hidden
One of the oil men in heaven started a rumor of a gusher down in hell.  All
the other oil men left in a hurry for hell.  As he gets to thinking about
the rumor he had started he says to himself there might be something in
it after all.  So he leaves for hell in a hurry.    --Carl Sandburg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]