标题: RAM只用了1/4,却不能增加新变量? [打印本页] 作者: winnie 时间: 2009-4-18 15:31 标题: RAM只用了1/4,却不能增加新变量? 我用PIC16F876A, PICC编译结果如下
Memory Usage Map:
Program ROM $0000 - $0110 $0111 ( 273) words
Program ROM $03EE - $07FF $0412 ( 1042) words
Program ROM $0A31 - $0FFF $05CF ( 1487) words
$0AF2 ( 2802) words total Program ROM
Bank 0 RAM $0020 - $007E $005F ( 95) bytes total Bank 0 RAM
Program statistics:
Total ROM used 2802 words (34.2%)
Total RAM used 95 bytes (25.8%)
可是再增加一个字节变量就会报错,
Error[000] : Can't find 0x1 words (0x1 withtotal) for psect intsave in segment BANK0
为什么?作者: winnie 时间: 2009-4-18 15:31
把BANK0全用拉,其他BANK还没有用,用BANK来定义变量,比如bank1 int a;等;