[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: What is the main change that makes Lua uses stack space over versions
- From: Rolf Kalbermatter <rolf.kalbermatter@...>
- Date: Sun, 11 Sep 2022 16:44:17 +0200
Actually an int is always 4 bytes (leaving away old 16 bit platforms like for MS-DOS or Windows 3.x). A long can be 8 byte on Unix 64-bit platforms but will be always 4 byte under Windows even on 64-bit platforms.
Rolf Kalbermatter
> On 11 Sep 2022, at 16:02, bil til <biltil52@gmail.com> wrote:
>
> I think this is due to the fact, that Lua 5.4 saves the variable type
> info in just 1 byte, instead of an int (8bytes in Lua64bit, 4 bytes in
> Lua32bit), as did the versions before.
>
> ... but not sure... just i remember roughly that this was a recent
> main change in Lua, as I read in some other posts here... .
>
>
>> Am So., 11. Sept. 2022 um 10:46 Uhr schrieb Domingo Alvarez Duarte
>> <mingodad@gmail.com>:
>>
> Lua-5.3.6 is the one that needs more stack space and
>> Lua-5.4.4 the less.
>>