搜索
bottom↓
回复: 2

IAR生成这些信息是什么意思?

[复制链接]

出0入0汤圆

发表于 2009-7-5 13:56:54 | 显示全部楼层 |阅读模式
3 334 bytes of CODE  memory
113 bytes of DATA  memory (+  41 absolute )
52 bytes of CONST memory (+ 256 absolute )

FLASH占用量是3 334 bytes ,还是3 334 bytes +  52 bytes + 256 bytes ?
RAM占用量是113 bytes,还是113 bytes +  41 bytes?

阿莫论坛20周年了!感谢大家的支持与爱护!!

一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。

出0入0汤圆

发表于 2009-7-6 10:16:14 | 显示全部楼层
是这个意思!
DATA还有41bytes,
CONST或CODE还有256没有用。

出0入0汤圆

发表于 2009-7-6 10:42:57 | 显示全部楼层
这是我的一个项目用9234编译的信息供参考

SEGMENT              SPACE    START ADDRESS   END ADDRESS     SIZE  TYPE  ALIGN
=======              =====    =============   ===========     ====  ====  =====
CHECKSUM                               1A1A - 1A1B               2   rel    0

Symbol      Checksum  Memory  Start  End   Initial value
------      --------  ------  -----  ---   -------------
__checksum    0xb1b2   CODE   0000 - 0021  0x0000 (#0x0000)
                       CODE   0040 - 0084
                       CODE   0086 - 1A19
                       CODE   1A1C - 1CFF

6 575 bytes of CODE  memory (+             683 range fill )
   213 bytes of DATA  memory (+ 42 absolute )
   110 bytes of CONST memory (+ 25 absolute )

连接文件(保留mini2仿真空间)
//-------------------------------------------------------------------------
//      Define CPU
//-------------------------------------------------------------------------

-c78000

//-------------------------------------------------------------------------
//      Size of the stack.
//      Remove comment and modify number if used from command line.
//-------------------------------------------------------------------------

//-D_CSTACK_SIZE=80

//-------------------------------------------------------------------------
//      SFR register address for code bank switching.
//      Remove one of the comments and optionally modify bank register
//      address if used from command line.
//-------------------------------------------------------------------------

// "Standard" code model, no banked functions
//-D_CODEBANK_REG=0

//-------------------------------------------------------------------------
//      Size of the heap.
//      Remove comment and modify number if used from command line.
//-------------------------------------------------------------------------

//-D_HEAP_SIZE=400

//-------------------------------------------------------------------------
//      Used by DLIB only
//      Define the format functions used by printf/scanf.
//      Default is full formatting.
//      Remove appropriate comment(s) to get reduced formatting
//      if used from command line.
//-------------------------------------------------------------------------

//-e_PrintfTiny=_Printf
//-e_PrintfSmall=_Printf
//-e_PrintfLarge=_Printf

//-e_ScanfSmall=_Scanf
//-e_ScanfLarge=_Scanf

//-------------------------------------------------------------------------
//      Used by DLIB only
//      Define if row buffering should be used by terminal output.
//      Default is no buffering.
//      Remove comment to get buffered terminal output if used from command line.
//-------------------------------------------------------------------------

//-e__write_buffered=__write

//-------------------------------------------------------------------------
//      Used by CLIB only
//      Define the format functions used by printf/scanf.
//      Default is full formatting.
//      Remove appropriate comment(s) to get reduced formatting
//      if used from command line.
//-------------------------------------------------------------------------

//-e_small_write=_formatted_write
//-e_medium_write=_formatted_write

//-e_medium_read=_formatted_read

//-------------------------------------------------------------------------
//      Allocate the read only segments that are mapped to ROM.
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
//      Interrupt vector segment.
//-------------------------------------------------------------------------
-Z(CODE)INTVEC=0000-0021

//-------------------------------------------------------------------------
//      CALLT vector segment.
//-------------------------------------------------------------------------
-Z(CODE)CLTVEC=0040-007F

//-------------------------------------------------------------------------
//      OPTION BYTES segment.
//-------------------------------------------------------------------------
-Z(CODE)OPTBYTE=0080-0084

//-------------------------------------------------------------------------
//      Startup, Runtime-library, Non banked, Interrupt
//      and CALLT functions code segment.
//-------------------------------------------------------------------------
-Z(CODE)RCODE,CODE=0086-1CFF

//-------------------------------------------------------------------------
//      Data initializer segments.
//-------------------------------------------------------------------------
-Z(CONST)CHECKSUM,NEAR_ID,SADDR_ID,DIFUNCT=0086-1CFF

//-------------------------------------------------------------------------
//      Constant segments
//-------------------------------------------------------------------------
-Z(CONST)CONST,SWITCH=0086-1CFF

//-------------------------------------------------------------------------
//      Allocate the read/write segments that are mapped to RAM.
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
//      Workseg and short address data segments.
//-------------------------------------------------------------------------
-Z(DATA)WRKSEG=FE20-FEFF
-Z(DATA)SADDR_I,SADDR_Z,SADDR_N=FE20-FEFF

//-------------------------------------------------------------------------
//      Near data and heap segments.
//-------------------------------------------------------------------------
-Z(DATA)NEAR_I,NEAR_Z,NEAR_N,HEAP+_HEAP_SIZE=FE00-FEFF

//-------------------------------------------------------------------------
//      Stack segment.
//-------------------------------------------------------------------------
-Z(DATA)CSTACK+_CSTACK_SIZE=FE00

//-------------------------------------------------------------------------
//      Select the output file format if used from command line.
//      Remove comment to select the file format if used from command line.
//-------------------------------------------------------------------------
//-Fdebug

//-------------------------------------------------------------------------
//      End of File
//-------------------------------------------------------------------------
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-15 17:39

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表