Content originally posted in LPCWare by devan888 on Tue Nov 17 03:07:19 CST 2015
有个难题一直困惑,请教各位帮助分析!
使用LPC1519在IAR下编译,输出MAP发现在command line: [2]处开始,到最后的 Linker created 36 4096,此处RAM开销了4096Byte,开销的内存是什么原因引起的?
有哪位了解的请赐教。。。
我有用FREERTOS,系统用到的内存有12K, 加上面的开销,就变成了16K, 有些吃不消!
我之前开LPC1114也用到FREERTOS, 上面开销不是4096,而是512,如果有办法改为512也可,但不知道如何修改。。。
*******************************************************************************
*** MODULE SUMMARY
***
Module ro code ro data rw data
------ ------- ------- -------
E:\workspace\NXP\SpringX_FreeRTOSV8.2.0_DEV20151024\applications\lpc15xx\iar_ewarm_projects\nxp_lpcspringX\ats\Release\Obj: [1]
DS18b20Srv.o 524 8
FreeRTOSCommonHooks.o 40
MMITimer.o 384 96
SpringApp.o 312
adc.o 900 908
adc_15xx.o 198
ats.o 1 100 236
board.o 104 8
board_sysinit.o 312
can_open_rom.o 1 360 116 2 273
chip_15xx.o 164 4
clock_15xx.o 412
cr_startup_lpc15xx.o 324 16
ds18b20.o 892 1
eeprom.o 544 128
gpio_15xx.o 42
heap_4.o 348 8 216
iar_startup_lpc15xx.o 276
iocon_15xx.o 34
list.o 144
mmi_ats_service.o 160 4
port.o 456 16 16
portasm.o 148
queue.o 1 226 80
ring_buffer.o 16
rtc.o 292 40
sct_15xx.o 36
sct_pwm.o 584 4
sct_pwm_15xx.o 132
stdlib.o 256
swm_15xx.o 76
sys_msg.o 316
sysctl_15xx.o 124
sysinit.o 4
sysinit_15xx.o 96
tasks.o 1 888 160 320
timers.o 772 60
uart_15xx.o 1 416 4 244
wwdt.o 196
wwdt_15xx.o 58
------------------------------------------------
Total: 16 666 304 12 654
command line: [2]
------------------------------------------------
Total:
dl7M_tln.a: [3]
exit.o 4
low_level_init.o 4
------------------------------------------------
Total: 8
m7M_tl.a: [4]
DblAdd.o 232
DblSub.o 364
DblToI32.o 76
FltMul.o 216
FltToDbl.o 78
FltToS32.o 68
I32ToFlt.o 46
------------------------------------------------
Total: 1 080
rt7M_tl.a: [5]
ABImemclr.o 6
ABImemclr4.o 6
ABImemset.o 102
ABImemset48.o 50
I64DivMod.o 238
I64DivZer.o 2
XXexit.o 12
cexit.o 10
cmain.o 26
copy_init3.o 46
cstartup_M.o 12
data_init.o 40
zero_init3.o 34
------------------------------------------------
Total: 584
Gaps 22
Linker created 36 4096
----------------------------------------------------
Grand Total: 18 360 340 16 750