diff options
| author | [email protected] <[email protected]> | 2012-11-22 03:39:22 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-11-22 03:39:22 +0000 |
| commit | 74bf69110ea5250a6ba795ab68ee067f19235150 (patch) | |
| tree | e658bc4819565caeff06ee6e91f9f731b5e50c0c /components/external/lua/README.TXT | |
| parent | 3968445d4a1ceece9cce84bd18ba56eeeb166a90 (diff) | |
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
Diffstat (limited to 'components/external/lua/README.TXT')
| -rw-r--r-- | components/external/lua/README.TXT | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/components/external/lua/README.TXT b/components/external/lua/README.TXT index d983056198..beb1cec948 100644 --- a/components/external/lua/README.TXT +++ b/components/external/lua/README.TXT @@ -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版本代码 |
