lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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