[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Estimation of memory alloc for luaL_loadfile
- From: 云风 Cloud Wu <cloudwu@...>
- Date: Wed, 26 Jul 2023 18:36:50 +0800
bil til <biltil52@gmail.com> 于2023年7月26日周三 18:22写道:
> RAM allocation depending on the form size. (my controller has very
> much ROM, up to 1MegaByte, but only restricated RAM - only 128kB RAM -
> therefore I have to be careful that RAM is saved for dynamic memory
> and best is used NOT for the program code).
I think you can change the implemention of lua string object to save
dynamic memory.
Using a pointer in the struct TString to refer the string memory, so
that the constant strings
in the precompiled binary code can be put into ROM.
--
http://blog.codingnow.com