[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Cross-compiler
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Wed, 13 Aug 2008 01:42:03 +0200
2008/8/12, KHMan <email@example.com>:
> Tim Maxwell wrote:
> > [snip snip]
> > > Old DOS compilers used to have medium and large models, in which
> > > sizeof(int) was different from sizeof(size_t), I guess, because
> > > in large models one would be able to address "far" data.
> > >
> > Are we supporting cross-compilation to old DOS compilers? That's the only
> case where it would make a difference. If luac itself is running on the old
> DOS compiler it will produce the correct code. In any case, a "-ccs" flag
> could be added in about five lines of code.
> Wouldn't the assumption sizeof(int)==sizeof(size_t) fail on LP64 and LLP64
Windows x64 have a 32 bits int and a 64 bits size_t. I don't remember
if it's LP64 or LLP64 though.