|
发表于 2008-12-4 07:43:13
|
显示全部楼层
korren, 您对比一下下面的编译结果(版本是一样的),您的版本生成的代码比原厂的45天全功能License版生成的代码还要小二十多字节,不知是否有什么危险?如果在IC中实际跑是否会有什么问题?
45天PRO版编译结果:
Build D:\Test\MPLAB_Test\Test for device 16F74
Using driver D:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe
Executing: "D:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe" --pass1 D:\Test\MPLAB_Test\main.c -q --chip=16F74 -P --runtime=default,+clear,+init,-keep,+osccal,-download,-resetbits,+stackcall,+stackwarn,+clib --opt=default,+asm,9 --warn=0 --double=24 -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Executing: "D:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe" --pass1 D:\Test\MPLAB_Test\delay.c -q --chip=16F74 -P --runtime=default,+clear,+init,-keep,+osccal,-download,-resetbits,+stackcall,+stackwarn,+clib --opt=default,+asm,9 --warn=0 --double=24 -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Executing: "D:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe" --pass1 D:\Test\MPLAB_Test\lcd.c -q --chip=16F74 -P --runtime=default,+clear,+init,-keep,+osccal,-download,-resetbits,+stackcall,+stackwarn,+clib --opt=default,+asm,9 --warn=0 --double=24 -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Executing: "D:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe" -oTest.cof -mTest.map --summary=default,-psect,-class,+mem,-hex --output=default,-inhx032 main.p1 delay.p1 lcd.p1 --chip=16F74 -P --runtime=default,+clear,+init,-keep,+osccal,-download,-resetbits,+stackcall,+stackwarn,+clib --opt=default,+asm,9 --warn=0 --double=24 -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
HI-TECH C PRO for the PIC10/12/16 MCU family candidate build 3206 V9.60PL4
Copyright (C) 1984-2008 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Mon, 05 Jan 2009
Memory Summary:
Program space used A9h ( 169) of 1000h words ( 4.1%)
Data space used 9h ( 9) of C0h bytes ( 4.7%)
EEPROM space None available
Configuration bits used 0h ( 0) of 1h word ( 0.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Loaded D:\Test\MPLAB_Test\Test.cof.
********** Build successful! **********
注册PRO版编译结果
Build D:\Test\MPLAB_Test\Test for device 16F74
Using driver D:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe
Executing: "D:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe" --pass1 D:\Test\MPLAB_Test\main.c -q --chip=16F74 -P --runtime=default,+clear,+init,-keep,+osccal,-download,-resetbits,+stackcall,+stackwarn,+clib --opt=default,+asm,9 --warn=0 --double=24 -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Executing: "D:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe" --pass1 D:\Test\MPLAB_Test\delay.c -q --chip=16F74 -P --runtime=default,+clear,+init,-keep,+osccal,-download,-resetbits,+stackcall,+stackwarn,+clib --opt=default,+asm,9 --warn=0 --double=24 -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Executing: "D:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe" --pass1 D:\Test\MPLAB_Test\lcd.c -q --chip=16F74 -P --runtime=default,+clear,+init,-keep,+osccal,-download,-resetbits,+stackcall,+stackwarn,+clib --opt=default,+asm,9 --warn=0 --double=24 -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Executing: "D:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe" -oTest.cof -mTest.map --summary=default,-psect,-class,+mem,-hex --output=default,-inhx032 main.p1 delay.p1 lcd.p1 --chip=16F74 -P --runtime=default,+clear,+init,-keep,+osccal,-download,-resetbits,+stackcall,+stackwarn,+clib --opt=default,+asm,9 --warn=0 --double=24 -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
HI-TECH C PRO for the PIC10/12/16 MCU family candidate build 3206 V9.60PL4
Copyright (C) 1984-2008 HI-TECH SOFTWARE
Serial number: HCPICP-168168
Memory Summary:
Program space used A9h ( 169) of 1000h words ( 4.1%)
Data space used 9h ( 9) of C0h bytes ( 4.7%)
EEPROM space None available
Configuration bits used 0h ( 0) of 1h word ( 0.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Loaded D:\Test\MPLAB_Test\Test.cof.
********** Build successful! **********
本贴被 avrmcu 编辑过,最后修改时间:2008-12-04,07:55:41. |
|