mirror of
https://github.com/elua/elua.git
synced 2025-01-25 01:02:54 +08:00
James Snyder
e427b9cc6e
Adjust parser to not malloc when a thrown error might prevent allocations from being freed
Imported from elua trunk, adapted to #ifdef LUA_EGC stuff. This does seem to slightly improve memory leakage behaviour: in 20KB RAM you can press Enter 17 times before getting "not enough memory" instead of 16. It also makes the code 48 bytes smaller :-)
Mizar32 branch of eLua ====================== The Mizar32-v0.9 branch is simplemachines.it's modifications to the eLua 0.9 release to produce their firmware release. For the 256K and 512K models, the firmware is largely the same as the default config from mainline eLua. Most of the hacks here are code size reductions for the 128K model, and to fit in 120KB, it has to be compiled using an AVR32 toolchain created by http://spaces.atmel.com/gf/project/ct-ng/ selecting gcc-4.4.7 and newlib-1.17 and built using: scons board=mizar32 cpu=AT32UC3A0128 target=lualong allocator=simple \ optram=0 rostrings=0 avr32-objcopy -O ihex elua_lualong_at32uc3a0128.elf \ elua_lualong_at32uc3a0128.hex as it is a very tight fit. Martin Guy <martinwguy@gmail.com>, May 2013
Languages
C
96.8%
Lua
1.4%
Assembly
1.1%
HTML
0.7%