英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流

标题: 调试状态下的代码量问题 [打印本页]

作者: lucky    时间: 2012-8-17 18:07
标题: 调试状态下的代码量问题
本帖最后由 lucky 于 2012-8-17 18:09 编辑

请教一个问题,我之前用PIC16F917在线调试,调试工具是PICKIT2。917的ROM空间是8K,当我的代码量超过6K时,在线调试就不能进行了。当时因为程序也差不多了,就没有管他。后来我用914做一个东西,ROM空间是4K的,当我的代码量超过50%,也就是2K的时候,又出现了相同的情况,程序不能在线调试了。这是我编译的结果~~
(1273) Omniscient Code Generation not available in Lite mode (warning)
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode)  V9.80
Copyright (C) 2010 Microchip Technology Inc.

Memory Summary:
    Program space        used   8AEh (  2222) of  1000h words   ( 54.2%)
    Data space             used    39h (    57) of   100h bytes   ( 22.3%)
    EEPROM space        used     0h (     0) of   100h bytes   (  0.0%)
    Configuration bits    used     0h (     0) of     1h word    (  0.0%)
    ID Location space    used     0h (     0) of     4h bytes   (  0.0%)

Running this compiler in PRO mode, with Omniscient Code Generation enabled,
produces code which is typically 40% smaller than in Lite mode.
The HI-TECH C PRO compiler output for this code could be 888 words smaller.

Loaded D:\spy_poj\spy914key\led.cof.
我看到那个The HI-TECH C PRO compiler output for this code could be 888 words smaller.
是不是说要留888h字节(2K)给C的编译器啊~~
请问如果我想对我的程序进行在线调试,有没有什么解决方法啊~~
谢谢了~~

作者: lucky    时间: 2012-8-17 18:13
我在网站上看了一下,估计是限制版本的编译器的问题
也可能是编译器引起的,换个编译器版本试试





欢迎光临 英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流 (http://www.enroobbs.com/) Powered by Discuz! X3.2