- Sat Dec 20, 2014 2:04 am
#5219
alonewolfx2 wrote:Thank you for your quick and hepful response. You are the best chipid working now. i am looking firmware and code and i saw one thing. its saying 32k free mem for starting but i type node.free after start i saw 13k free memory. I understand from here lua consuming about 20k ram. am i right?
Code: Select allNodeLua 1.0.20141219 (With liblua 5.1.5) Copyright (C) 2014 NodeLua.org free mem=32896
Please set node ID!
> print(node.free())
13040
>
I have roughly measured the RAM consuming by different parts of Lua, here is some results:
The Lua VM itself consumes not much, only ~ 5KB
Libs are the major consumers, ~17KB
If you looking into /app/lua/linit.c, you'll found that I had already commented out some unnecessary libs to make it bootable~
The RAM consumes measuring code is here: /app/lua/lua.c: luainit. If you want to see those DEBUG_MSG, add the following line to the beginning of Makefile: CCFLAGS += -DDEBUG