如果编译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

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

  1. STM8S编译错误unable to allocate space for sections/blocks with a total

    STM8S编译错误unable to allocate space for sections/blocks with a total # 欢迎使用Markdown编辑器 笔者用IAR for STM8 ...

  2. IAR编译错误:unable to allocate space for sections/blocks with a total estimated minimum size of 0x504c

    IAR编译错误:unable to allocate space for sections/blocks with a total estimated minimum size of 0x504c 用 ...

  3. Android gradle编译错误OOM:java heap space的解决办法

    Android开发中,在编译较大规模项目时,出现内存溢出错误: OutOfMemeryError OOM:java heap space; 尝试解决办法: 1. 开发项目根项目下增加/demo/gra ...

  4. java code large_Java中的“代码太大”编译错误(“Code too large” compilation error in Java)...

    Java中的"代码太大"编译错误("Code too large" compilation error in Java) Java中的代码是否有最大大小? 我写 ...

  5. Delphi常见各类编译错误信息-中英对照

    整理自网上的文章,也忘了出处,无意冒犯,如有侵权,请提前通知,本博客将及时处理. 一. 编译错误信息 ';' not allowed before 'ELSE' ElSE前不允许有";&qu ...

  6. C2248编译错误的原因和解决--VC6向VC7.1迁移真是累死人,N多编译错误

    把以前VC6先写好的类加入VC7中,编译时竟然错误多到编译器无法接受而停止,hooooo.真的好烦,要是有个工具修改外加的.h和cpp文件就好了... 遇到最多的是C2248编译错误,才发现VC7提升 ...

  7. c语言编译错误 原文,C语言常见错误与警告

    C语言常见错误与警告 C语言常见错误与警告C语言常见错误: 1 invalid type argument of '->' (have 'struct qstr_xid_element') 这种 ...

  8. 探讨NDK编译错误ld.exe: Dwarf Error: mangled line number section.

    如题所示的NDK编译错误是什么原因导致的? 我的困惑 今天在把WIN32下的一个工程移植到ANDROID时遇到上述错误,感到非常困惑.错误如下: D:/ndkr8/toolchains/arm-lin ...

  9. Yade 安装时编译错误求问

    Yade 安装时编译错误求问 多版本.多次安装均在76%时产生错误,错误代码如下: 系统是UBUNTU16.04 如有大佬赐教,小弟不胜感激 hty@hty-System-Product-Name:~ ...

最新文章

  1. APAR:MON_OBJ_METRICS=EXTENDED导致IUD性能问题(转载自Db2技术分享)
  2. Boost:额外的bimap的测试程序
  3. Error: Another program is already listening on a port that one of our HTTP servers is configured to
  4. 微软发布XAML Studio工具:快速构建UWP XAML原型
  5. 技术管理角色认知-管理都需要做哪些事
  6. 一个封装了的ADO类,功能非常强大,并做了一个DEMO演示如何操作ACCESS数据库
  7. 领域驱动设计和业务建模的最佳实现模式
  8. 苹果公司首次公布iOS 13和iPadOS 13安装量 都有一颗尝鲜的心
  9. 计算机网络(HTTP、TCP)的连接管理
  10. mysql置疑原因_SQL SERVER2000数据库置疑处理详解
  11. 9针串口RS232、RS485之间的差异
  12. VueH5页面跳转高德地图导航
  13. 参加了一场温州游资的婚礼,也太壕了
  14. 中文如何翻译成英文?手机中英文一键翻译超简单
  15. 首次揭秘!字节跳动基础架构技术迭代演进之路
  16. jsp自定义标签 线程安全
  17. 【EXLIBRIS】随笔记 012
  18. linux微内核,开源微内核seL4microkernel
  19. 二重积分x^2+y^2_计算二重积分∫∫(x+y)dxdy,其中D为x^2+y^2≤2x
  20. volatile busy wating

热门文章

  1. 基础总结篇之九:Intent应用详解
  2. 开机即启动Activity
  3. Java学习系列(十四)Java面向对象之细谈线程、线程通信(上)
  4. 使用LocalBroadcastManager
  5. Android merge 标签学习笔记
  6. 聊聊 scala 的模式匹配 1
  7. OpenAI公布强化学习新算法,可控制复杂机器人
  8. 第一百五十一节,封装库--JavaScript,表单验证--密码确认验证--回答验证--电子邮件验证加自动补全...
  9. EF双向一对一中的坑
  10. 2012-2013年度大总结