在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
芯片精品文章合集(500篇!)    创芯人才网--重磅上线啦!
查看: 4480|回复: 2

[求助] 使用xdata遇到的问题

[复制链接]
发表于 2010-1-30 17:50:16 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
我写了一段代码,然后在KEIL开发环境下使用了不同的MEMORY MODEL: SMALL和LARGE(variaties in xdata)。使用SMALL时功能正确,但是用LARGE时却无法实现正确的功能。而且我将某些变量定义为xdata,功能也无法实现,编译倒能通过。请问问题何在?xdata是不是一定要间接寻址的?
发表于 2010-1-31 02:02:58 | 显示全部楼层
There are 3 memory models available for programs using the Keil C compiler – SMALL, COMPACT and LARGE. In the SMALL memory model the default storage location is the 126 Bytes of internal memory while in the LARGE memory model the default storage location is the externally addressed memory. The choice of which memory model to use depends on the program, the anticipated stack size and the size of data. If the stack and the data cannot fit in the 128 Bytes of internal memory, then the default memory model should be LARGE; otherwise, SMALL should be used.
 楼主| 发表于 2010-2-5 16:37:50 | 显示全部楼层
谢谢!已经解决了,我把一些变量定义到了XDATA中去,然后还是用small,功能正常了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-12 17:10 , Processed in 0.025978 second(s), 8 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表