编译含有中文字符串的代码测试的有以下版本:
HI-TECH PICC std version 9_60PL0
HI-TECH PICC STD version 9_60PL2
HI-TECH C PRO for the PIC10_12_16 MCU Family V9_60PL3
HI-TECH C PRO for the PIC10_12_16 MCU Family V9_60PL5
HI-TECH C PRO for the PIC10_12_16 MCU Family V9_65PL0
HI-TECH C Compiler for the PIC10_12_16 MCUs V9_70PL0
HI-TECH C Compiler for the PIC10_12_16 MCUs V9_71aPL1
HI-TECH C Compiler for the PIC10_12_16 MCUs V9_80PL0
还是老实用HI-TECH C PRO for the PIC10_12_16 MCU Family V9_60PL3这个吧!
使用
HI-TECH C Compiler for the PIC10_12_16 MCUs V9_80PL0
HI-TECH C Compiler for the PIC10_12_16 MCUs V9_71aPL1:
PRO mode、Standard模式 优化很大
Build (F10) 第一次编译出现 Warning [228] illegal character,再次编译警告消失!*** Build successful! ***
Rebuild (Ctrl + F10) 编译始终出现Warning [228] illegal character *** Build successful! ***
Lite mode模式
Build (F10) 第一次编译出现 Warning [228] illegal character,再次编译警告消失!*** Build successful! ***
Rebuild (Ctrl + F10) 编译始终出现Warning [228] illegal character*** Build successful! ***
使用
HI-TECH C Compiler for the PIC10_12_16 MCUs V9_70PL0
PRO mode、Standard模式 优化很大
Build (F10) *** Build successful! *** 但查看反汇编代码不对,进入软件调试模式死机!
Rebuild (Ctrl + F10) 编译始终出现Error [228] illegal character *** Build failed! ***
Lite mode
Build (F10) *** Build successful! *** 但查看反汇编代码不对,可以进入调试模式!
Rebuild (Ctrl + F10) 编译始终出现Error [228] illegal character *** Build failed! ***
millwood0:说
9.70 is extremely buggy.
avoid it at all cost. 的确如此!!!
使用
HI-TECH C PRO for the PIC10_12_16 MCU Family V9_65PL0
PRO mode模式 优化很大
Build (F10) 第一次编译出现 Error [228] illegal character 再次编译*** Build successful! *** 调试未见异常!
Rebuild (Ctrl + F10) 编译始终出现Error [228] illegal character *** Build failed! ***
Lite mode
Build (F10) 第一次编译出现 Error [228] illegal character 再次编译*** Build successful! *** 调试未见异常!
Rebuild (Ctrl + F10) 编译始终出现Error [228] illegal character *** Build failed! ***
使用
HI-TECH C PRO for the PIC10_12_16 MCU Family V9_60PL5
PRO mode
Build (F10) 第一次编译出现 Error [228] illegal character 再次编译*** Build successful! *** 调试未见异常!
Rebuild (Ctrl + F10) 编译始终出现Error [228] illegal character *** Build failed! ***
使用
HI-TECH C PRO for the PIC10_12_16 MCU Family V9_60PL3
PRO mode
Build (F10) *** Build successful! ***
Rebuild (Ctrl + F10) *** Build successful! ***
使用
HI-TECH PICC STD V9.60PL2
Build (Ctrl + F10) 编译通过!
Rebuild 编译通过!
使用
HI-TECH PICC std V9.60PL0
Build (Ctrl + F10) 编译通过!
Rebuild 编译通过!
millwood0: 曾经说过
the newer OCG compilers are really useless.
what hi-tech has done is to bloat up the lite version, and then optimize against that in the pro version to give the illusion of drastic space savings: the claimed 20 - 25%
savings for example.
however, when you compare the code generated using the pro compilers vs. code generated using older non-OCG compilers (anything up to 9.60 std I think), you will find that
the ocg compilers offer little incremental savings.
so I am still using my 9.60std.
不知道所说的是不是HI-TECH PICC std V9.60PL0版本?
以下是针对同一个程式下不同版本的编译结果:
(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 A4Bh ( 2635) of 1000h words ( 64.3%)
Data space used 56h ( 86) of 100h bytes ( 33.6%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.80
Copyright (C) 2010 Microchip Technology Inc.
Serial number: HCPICP-654321 (PRO)
Memory Summary:
Program space used A4Bh ( 2635) of 1000h words ( 64.3%)
Data space used 56h ( 86) of 100h bytes ( 33.6%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C Compiler for PIC10/12/16 MCUs (Standard Mode) V9.80
Copyright (C) 2010 Microchip Technology Inc.
Serial number: HCPICP-654321 (PRO)
Memory Summary:
Program space used 6A3h ( 1699) of 1000h words ( 41.5%)
Data space used 4Dh ( 77) of 100h bytes ( 30.1%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C Compiler for PIC10/12/16 MCUs (PRO Mode) V9.80
Copyright (C) 2010 Microchip Technology Inc.
Serial number: HCPICP-654321 (PRO)
Memory Summary:
Program space used 6A3h ( 1699) of 1000h words ( 41.5%)
Data space used 4Dh ( 77) of 100h bytes ( 30.1%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
(1273) Omniscient Code Generation not available in Lite mode (warning)
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.71a
Copyright (C) 2010 Microchip Technology Inc.
Memory Summary:
Program space used 9D5h ( 2517) of 1000h words ( 61.5%)
Data space used 56h ( 86) of 100h bytes ( 33.6%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.71a
Copyright (C) 2010 Microchip Technology Inc.
Serial number: HCPICP-654321 (PRO)
Memory Summary:
Program space used 9D5h ( 2517) of 1000h words ( 61.5%)
Data space used 56h ( 86) of 100h bytes ( 33.6%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C Compiler for PIC10/12/16 MCUs (Standard Mode) V9.71a
Copyright (C) 2010 Microchip Technology Inc.
Serial number: HCPICP-654321 (PRO)
Memory Summary:
Program space used 6A1h ( 1697) of 1000h words ( 41.4%)
Data space used 4Dh ( 77) of 100h bytes ( 30.1%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C Compiler for PIC10/12/16 MCUs (PRO Mode) V9.71a
Copyright (C) 2010 Microchip Technology Inc.
Serial number: HCPICP-654321 (PRO)
Memory Summary:
Program space used 6A1h ( 1697) of 1000h words ( 41.4%)
Data space used 4Dh ( 77) of 100h bytes ( 30.1%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
(1273) Omniscient Code Generation not available in Lite mode (warning)
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.70
Copyright (C) 2009 Microchip Technology Inc.
Memory Summary:
Program space used A2Ah ( 2602) of 1000h words ( 63.5%)
Data space used 57h ( 87) of 100h bytes ( 34.0%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.70
Copyright (C) 2009 Microchip Technology Inc.
Serial number: HCPICP-654321 (PRO)
Memory Summary:
Program space used A2Ah ( 2602) of 1000h words ( 63.5%)
Data space used 57h ( 87) of 100h bytes ( 34.0%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C Compiler for PIC10/12/16 MCUs (Standard Mode) V9.70
Copyright (C) 2009 Microchip Technology Inc.
Serial number: HCPICP-654321 (PRO)
Memory Summary:
Program space used 6C4h ( 1732) of 1000h words ( 42.3%)
Data space used 52h ( 82) of 100h bytes ( 32.0%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C Compiler for PIC10/12/16 MCUs (PRO Mode) V9.70
Copyright (C) 2009 Microchip Technology Inc.
Serial number: HCPICP-654321 (PRO)
Memory Summary:
Program space used 6C4h ( 1732) of 1000h words ( 42.3%)
Data space used 52h ( 82) of 100h bytes ( 32.0%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C PRO for the PIC10/12/16 MCU family (Lite) V9.65
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
Memory Summary:
Program space used A1Dh ( 2589) of 1000h words ( 63.2%)
Data space used 4Ch ( 76) of 100h bytes ( 29.7%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C PRO for the PIC10/12/16 MCU family (Lite) V9.65
Copyright (C) 1984-2009 HI-TECH SOFTWARE
Serial number: HCPICP-654321
Memory Summary:
Program space used A1Dh ( 2589) of 1000h words ( 63.2%)
Data space used 4Ch ( 76) of 100h bytes ( 29.7%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C PRO for the PIC10/12/16 MCU family V9.65
Copyright (C) 1984-2009 HI-TECH SOFTWARE
Serial number: HCPICP-654321
Memory Summary:
Program space used 6CFh ( 1743) of 1000h words ( 42.6%)
Data space used 47h ( 71) of 100h bytes ( 27.7%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C PRO for the PIC10/12/16 MCU family (Lite) V9.60PL5
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
Memory Summary:
Program space used A2Bh ( 2603) of 1000h words ( 63.5%)
Data space used 4Ch ( 76) of 100h bytes ( 29.7%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C PRO for the PIC10/12/16 MCU family V9.60PL5
Copyright (C) 1984-2009 HI-TECH SOFTWARE
Serial number: HCPICP-654321
Memory Summary:
Program space used 6C2h ( 1730) of 1000h words ( 42.2%)
Data space used 47h ( 71) of 100h bytes ( 27.7%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C PRO for the PIC10/12/16 MCU family (Lite) V9.60PL3
Copyright (C) 1984-2008 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
Memory Summary:
Program space used D1Bh ( 3355) of 1000h words ( 81.9%)
Data space used 4Ch ( 76) of 100h bytes ( 29.7%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH C PRO for the PIC10/12/16 MCU family V9.60PL3
Copyright (C) 1984-2008 HI-TECH SOFTWARE
Serial number: HCPICP-654321
Memory Summary:
Program space used 6BBh ( 1723) of 1000h words ( 42.1%)
Data space used 47h ( 71) of 100h bytes ( 27.7%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH PICC STD V9.60PL2
Serial number:HCPIC-654321
Memory Summary:
Program space used 6A4h ( 1700) of 1000h words ( 41.5%)
Data space used 45h ( 69) of 100h bytes ( 27.0%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
HI-TECH PICC std V9.60PL0
Serial number:HCPIC-654321
Memory Usage Map:
Program space:
CODE used 641h ( 1601) of F00h words ( 41.7%)
CONST used 4Fh ( 79) of F00h words ( 2.1%)
ENTRY used 16h ( 22) of F00h words ( 0.6%)
STRING used 0h ( 0) of F00h words ( 0.0%)
Data space:
BANK0 used 4Ah ( 74) of 5Fh bytes ( 77.9%)
BANK1 used 0h ( 0) of 50h bytes ( 0.0%)
BANK2 used 0h ( 0) of 45h bytes ( 0.0%)
COMBANK used 1h ( 1) of Fh bytes ( 6.7%)
EEPROM space:
EEDATA used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits:
CONFIG used 2h ( 2) of 2h words (100.0%)
ID Location space:
IDLOC used 0h ( 0) of 4h bytes ( 0.0%)
Summary:
Program space used 6A6h ( 1702) of 1000h words ( 41.6%)
Data space used 4Bh ( 75) of 100h bytes ( 29.3%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
我测试的只是一个简单的程序,大概500条左右;可能没多大意义。仅供大家参考!
一周热门 更多>