[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT2 FFI 2D VLA causing massive runtime memory usage growth
- From: Johnson Lin <arch.jslin@...>
- Date: Wed, 23 Feb 2011 18:32:15 +0800
On Wed, Feb 23, 2011 at 6:09 PM, Mike Pall <mikelu-1102@mike.de> wrote:
> Johnson Lin wrote:
>> I might be mistaken, but I still saw a few "NYI: unsupported C
>> function type" and then followed by a "fall back to interpreter" when
>> using -jv. You might want to check my lua code in the last post, it's
>> at line 379. I'm pretty sure glColor3f and glVertex3f are both with
>> void result, just checked the OpenGL documentation, so it should've
>> worked, I dunno why it didn't :p
>
> Ah, now I get it: you're using 32 bit Windows? Sadly, opengl32.dll
> uses __stdcall on Win32 and these kind of C functions cannot be
> called from compiled code, yet (they work in the interpreter of
> course). Not sure when I'll get around to implement this.
>
> --Mike
doh, I am actually using Win7 64-bit version. But most of my
toolchains are 32-bit ones. I guess it's time for me to learn when and
where I should use 64-bit toolchains. A few 64-bit compilation failure
in the past made it FUD for me.
Thanks again for the explanation!
Johnson Lin