尝试通过SDCC
跑步:
sdcc -mpic14 -p16f887 blink.c
给出:
blink.c:6:27: error: pic/pic16f887.h: No such file or directory
blink.c:12: warning 197: keyword 'at' is deprecated, use '__at' instead
blink.c:12: error 20: Undefined identifier '_CONFIG1'
blink.c:12: error 2: Initializer element is not constant
blink.c:13: warning 197: keyword 'at' is deprecated, use '__at' instead
blink.c:13: error 20: Undefined identifier '_CONFIG2'
blink.c:13: error 2: Initializer element is not constant
blink.c:43: error 20: Undefined identifier 'TRISC'
blink.c:65: error 20: Undefined identifier 'PORTC'