[Top][All Lists]
[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
- [Chicken-hackers] [PATCH] resubmission of win64 patch, Felix, 2012/12/05
- Re: [Chicken-hackers] [PATCH] resubmission of win64 patch,
John Cowan <=
- Re: [Chicken-hackers] [PATCH] resubmission of win64 patch, Felix, 2012/12/09
- Re: [Chicken-hackers] [PATCH] resubmission of win64 patch, Christian Kellermann, 2012/12/10
- Re: [Chicken-hackers] [PATCH] resubmission of win64 patch, Peter Bex, 2012/12/10
- Re: [Chicken-hackers] [PATCH] resubmission of win64 patch, Felix, 2012/12/10
- Re: [Chicken-hackers] [PATCH] resubmission of win64 patch, Peter Bex, 2012/12/10
- Re: [Chicken-hackers] [PATCH] resubmission of win64 patch, Felix, 2012/12/11
- Re: [Chicken-hackers] [PATCH] resubmission of win64 patch, Christian Kellermann, 2012/12/11
- Re: [Chicken-hackers] [PATCH] resubmission of win64 patch, Peter Bex, 2012/12/11