编译错误: Too much data space used by DLL's in MODULES section

如果编译CE NK的时候,我们可能会遇到这个编译错误:"Too much data space used by DLL's in MODULES section",原因是文件太多,无法放进MODULES内存段。
Code space full, fixing up  *** .dll to ram space 
Code space full, fixing up 
*** .dll to ram space 
Code space full, fixing up 
*** .dll to ram space 
Error: Too much data space used by DLL
' s in MODULES section 
Current usage  =  28864k, Maximum usage  =  26624k. 
Reduce DLL usage or move some DLL
' s into the FILES section.Fatal error hit, exiting 
makeimg: FATAL ERROR: Command returned non - zero exit code  1  (dec). 
makeimg: FATAL ERROR: Command returned non
- zero exit code  1  (dec).

PB的文档中有关于该错误的描述:
Debug images are larger than their retail counterparts, which may cause build errors because of two primary reasons:
1. The amount of space allotted to the overall OS image (config.bib's RAMIMAGE entry) is insufficient. The values used in config.bib are often limited by the amount of physical memory present on the target device and thus can only be increased to a hardware-imposed limit. 
2. The modules (DLLs) within the OS image exceed the slot-based virtual address space that has been allotted. During the build process, Romimage configures the modules to fit one of two slot address spaces (slot 0 or slot 1), depending on build logic. If you run out of allotted space in these two slots, a build error similar to the following will occur:
Error: Too much data space used by DLL's in MODULES section
Current usage = 42752k, Maximum usage = 26624k.
Reduce DLL usage or move some DLL's into the FILES section. Fatal error hit, exiting...

To avoid this, build retail images and include debug versions of only executables that you want to debug, or reduce the build configuration (SYSGEN/feature selections) to something smaller.

所以我们可以针对两个问题,进行两种解决方法:
1. 修改config.bib文件中Memory的部分,修改模块的size;
2. 将某些模块移入到FILE部分中。

关于Config.bib文件的修改和slot address speces的说明,请参考MSDN.http://msdn.microsoft.com/en-us/library/aa909412.aspx
也可看看下面写的:
http://topic.csdn.net/u/20080303/15/5ca361da-813e-4dfc-a394-31843385329c.html
http://www.kaise.com.tw/bbs/viewtopic.php?t=782&view=previous&sid=812b3775881ae365b11ca42510e16b66

转载于:https://www.cnblogs.com/frankjobs/archive/2008/06/19/1226119.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值