因仑“3+1”工程特种兵精英论坛

标题: CVAVR中的heap size设置 [打印本页]

作者: 谭力源    时间: 2016-4-7 22:18
标题: CVAVR中的heap size设置
软件版本 CVAVR2.03.4
目前全局变量所占空间为 422KB
所用芯片为mega128A
编译信息如下
Chip: ATmega128
Clock frequency: 11.059200 MHz
Program type: Application
Memory model: Small
Optimize for: Size
(s)printf features: int, width
(s)scanf features: int, width
Promote char to int: No
char is unsigned: Yes
global const stored in FLASH: Yes
8 bit enums: No
Enhanced core instructions: On
Automatic register allocation: On

6273 line(s) compiled
No errors
12 warning(s)

Bit variables area: 2h to 2h
Bit variables size: 1 byte(s)

Data Stack area: 100h to 4FFh
Data Stack size: 1024 byte(s)
Estimated Data Stack usage: 85 byte(s)

RAM Global variables area: 500h to 658h
RAM Global variables size: 345 byte(s)

Hardware Stack area: 659h to 10FFh
Hardware Stack size: 2727 byte(s)

Heap size: 0 byte(s)

EEPROM usage: 0 byte(s), 0.0% of EEPROM
Program size: 11182 words (22364 bytes), 17.1% of FLASH

现在的设置是
data stack size 1024
heap size 0
程序现在能正常运行,但是我不确定如果 heap size 不设置的话,程序在长时间运行后会不会出问题?
大家帮忙看一下好吗,谢谢!





欢迎光临 因仑“3+1”工程特种兵精英论坛 (http://bbs.enlern.com/) Powered by Discuz! X3.4