查看: 719|回复: 0
打印 上一主题 下一主题

CVAVR中的heap size设置

[复制链接]
跳转到指定楼层
沙发
发表于 2016-4-7 22:18:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
软件版本 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 不设置的话,程序在长时间运行后会不会出问题?
大家帮忙看一下好吗,谢谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入因仑

本版积分规则

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