add support of arm standard c library, support using armcc to compile lua

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2429 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
xiongyihui3@gmail.com
2012-11-22 03:39:22 +00:00
parent 3968445d4a
commit 74bf69110e
7 changed files with 238 additions and 12 deletions
+6 -5
View File
@@ -2,7 +2,7 @@
## 简介
RT-Thread中的Lua修改自[eLua](http://www.eluaproject.net/)的Lua-5.1.4版本。
采用gcc工具链时,Lua依赖于newlib库,其它工具链暂时还不支持
采用gcc工具链时,Lua依赖于newlib库,采用keil时,Lua依赖于arm的标准c库
启动lua的RAM占用情况
- 标准的lua 17.1904296875 KB
- 优化的lua 5.01953125 KB
@@ -24,11 +24,12 @@ RT-Thread中的Lua修改自[eLua](http://www.eluaproject.net/)的Lua-5.1.4版本
3.更多的配置项可以在luaconf.h中找到
## 开发相关
- 采用gcc工具链时,依赖于newlib,需在rtconfig.h中定义RT_USING_NEWLIB
- 采用gcc工具链时,依赖于newlib,需在rtconfig.h中定义RT_USING_NEWLIB
采用keil工具链时,依赖于arm的标准c库,需在rtconfig.h中定义RT_USING_ARM_LIBC
- 开启编译器对C99的支持,如MDK中,在C/C++选项的Misc Controls输入框中添加--c99
- 需要在链接脚本中定义_stext和_etext.ordata*放在两者之间。
用于判断数据是read-only和writable。MDK中如何实现??
- 添加新的模块,参见lexample.c
- 使用gcc时,需要在链接脚本中定义_stext和_etext.ordata*放在两者之间。用于判断数据是read-only和writable
使用keil时,需要在分散加载文件中把rodata放在ER_IROM1区
- 添加新的模块,参见exlibs/lexamplelib.c
## 目录说明
- lua:从eLua获得Lua-5.1.4版本代码