本帖最后由 wdliming 于 2012-12-17 11:49 编辑
很明显有不同的,我在全局变量里把部分变量定义在bank2里,
bank2 unsigned int STACK_P,STACK_PO,pressure=0;
873A就编译不通过:
Clean: Deleting intermediary and output files.
Clean: Deleted file "E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.obj".
Clean: Deleted file "E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.cce".
Clean: Deleted file "E:\company\10W_PUMP_CTRL\PIC\SourceCode\usart.obj".
Clean: Deleted file "E:\company\10W_PUMP_CTRL\PIC\SourceCode\usart.cce".
Clean: Deleted file "BIC3.cof".
Clean: Done.
Executing: "C:\Program Files\HI-TECH Software\PICC\9.50\BIN\PICC.EXE" -C -E"10w_ pump.cce" "10w_ pump.c" -O"10w_ pump.obj" -Zg9 -O -ASMLIST -Q -MPLAB -16F873A
Advisory[1207] : some of the command line options you are using are now obsolete
Advisory[1208] : use --help option or refer to the user manual for option details
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 39 : non-prototyped function declaration for "inital"
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 61 : non-prototyped function declaration for "delay30us"
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 70 : non-prototyped function declaration for "delay1ms"
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 79 : non-prototyped function declaration for "delay400us"
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 88 : non-prototyped function declaration for "delay50ms"
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 97 : non-prototyped function declaration for "delay500ms"
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 109 : non-prototyped function declaration for "delay1s"
Warning[356] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 631 : implicit conversion of float to integer
Warning[356] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 639 : implicit conversion of float to integer
Warning[356] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 646 : implicit conversion of float to integer
Warning[356] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 698 : implicit conversion of float to integer
Warning[356] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 707 : implicit conversion of float to integer
Warning[356] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 714 : implicit conversion of float to integer
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 779 : non-prototyped function declaration for ""
Executing: "C:\Program Files\HI-TECH Software\PICC\9.50\BIN\PICC.EXE" -C -E"usart.cce" "usart.c" -O"usart.obj" -Zg9 -O -ASMLIST -Q -MPLAB -16F873A
Advisory[1207] : some of the command line options you are using are now obsolete
Advisory[1208] : use --help option or refer to the user manual for option details
Executing: "C:\Program Files\HI-TECH Software\PICC\9.50\BIN\PICC.EXE" -E"BIC3.lde" "E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.obj" "E:\company\10W_PUMP_CTRL\PIC\SourceCode\usart.obj" -M"BIC3.map" -O"BIC3.cof" -O"BIC3.hex" -Q -MPLAB -16F873A
Advisory[1207] : some of the command line options you are using are now obsolete
Advisory[1208] : use --help option or refer to the user manual for option details
Error[477] : fixup overflow in expression (location 0x14BA (0x144C+110), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x14C2 (0x14BE+4), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x14DE (0x14BE+32), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x14E6 (0x14BE+40), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x150A (0x14F4+22), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x1516 (0x14F4+34), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x1566 (0x1538+46), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x1572 (0x1538+58), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x16AC (0x166C+64), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x16B4 (0x16B4+0), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x16C0 (0x16B4+12), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x16D0 (0x16B4+28), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x16E0 (0x16B4+44), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x16EA (0x16B4+54), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x16FA (0x16B4+70), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x170C (0x170C+0), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x1718 (0x170C+12), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x1752 (0x170C+70), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x175A (0x170C+78), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x17DE (0x17AE+48), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x17E6 (0x17AE+56), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x186C (0x1850+28), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x1874 (0x1850+36), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x1944 (0x18F0+84), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x194C (0x194C+0), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x19D2 (0x1996+60), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x19DA (0x1996+68), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x1A60 (0x1A34+44), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x1A68 (0x1A34+52), size 1, value 0x1BC)
Error[477] : fixup overflow in expression (location 0x1B36 (0x1B30+6), size 1, value 0x1BD)
Error[477] : fixup overflow in expression (location 0x1B3E (0x1B30+14), size 1, value 0x1BC)
Advisory[1] : too many errors (31)
BUILD FAILED: Mon Dec 17 11:42:50 2012
877A编译结果为:
Clean: Deleting intermediary and output files.
Clean: Deleted file "E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.obj".
Clean: Deleted file "E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.cce".
Clean: Deleted file "E:\company\10W_PUMP_CTRL\PIC\SourceCode\usart.obj".
Clean: Deleted file "E:\company\10W_PUMP_CTRL\PIC\SourceCode\usart.cce".
Clean: Done.
Executing: "C:\Program Files\HI-TECH Software\PICC\9.50\BIN\PICC.EXE" -C -E"10w_ pump.cce" "10w_ pump.c" -O"10w_ pump.obj" -Zg9 -O -ASMLIST -Q -MPLAB -16F877A
Advisory[1207] : some of the command line options you are using are now obsolete
Advisory[1208] : use --help option or refer to the user manual for option details
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 39 : non-prototyped function declaration for "inital"
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 61 : non-prototyped function declaration for "delay30us"
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 70 : non-prototyped function declaration for "delay1ms"
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 79 : non-prototyped function declaration for "delay400us"
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 88 : non-prototyped function declaration for "delay50ms"
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 97 : non-prototyped function declaration for "delay500ms"
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 109 : non-prototyped function declaration for "delay1s"
Warning[356] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 631 : implicit conversion of float to integer
Warning[356] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 639 : implicit conversion of float to integer
Warning[356] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 646 : implicit conversion of float to integer
Warning[356] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 698 : implicit conversion of float to integer
Warning[356] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 707 : implicit conversion of float to integer
Warning[356] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 714 : implicit conversion of float to integer
Warning[349] E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.c 779 : non-prototyped function declaration for ""
Executing: "C:\Program Files\HI-TECH Software\PICC\9.50\BIN\PICC.EXE" -C -E"usart.cce" "usart.c" -O"usart.obj" -Zg9 -O -ASMLIST -Q -MPLAB -16F877A
Advisory[1207] : some of the command line options you are using are now obsolete
Advisory[1208] : use --help option or refer to the user manual for option details
Executing: "C:\Program Files\HI-TECH Software\PICC\9.50\BIN\PICC.EXE" -E"BIC3.lde" "E:\company\10W_PUMP_CTRL\PIC\SourceCode\10w_ pump.obj" "E:\company\10W_PUMP_CTRL\PIC\SourceCode\usart.obj" -M"BIC3.map" -O"BIC3.cof" -O"BIC3.hex" -Q -MPLAB -16F877A
Advisory[1207] : some of the command line options you are using are now obsolete
Advisory[1208] : use --help option or refer to the user manual for option details
Memory Usage Map:
Program space:
CODE used ACBh ( 2763) of 2000h words ( 33.7%)
CONST used 0h ( 0) of 2000h words ( 0.0%)
ENTRY used 16h ( 22) of 2000h words ( 0.3%)
STRING used 0h ( 0) of 2000h words ( 0.0%)
Data space:
BANK0 used 35h ( 53) of 60h bytes ( 55.2%)
BANK1 used 18h ( 24) of 50h bytes ( 30.0%)
BANK2 used 6h ( 6) of 60h bytes ( 6.3%)
BANK3 used 0h ( 0) of 60h bytes ( 0.0%)
COMBANK used 1h ( 1) of 10h bytes ( 6.3%)
EEPROM space:
EEDATA used 0h ( 0) of 100h bytes ( 0.0%)
ID Location space:
IDLOC used 0h ( 0) of 4h bytes ( 0.0%)
Configuration bits:
CONFIG used 0h ( 0) of 1h word ( 0.0%)
Summary:
Program space used AE1h ( 2785) of 2000h words ( 34.0%)
Data space used 54h ( 84) of 170h bytes ( 22.8%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Configuration bits used 0h ( 0) of 1h word ( 0.0%)
Loaded E:\company\10W_PUMP_CTRL\PIC\SourceCode\BIC3.cof.
BUILD SUCCEEDED: Mon Dec 17 11:43:12 2012
不知哪位大侠帮忙解释一下~~谢谢!
|