From: Bert D. <dri...@pl...> - 2005-04-29 00:52:39
|
On Thu, 28 Apr 2005, Filippo Valiante Filho wrote: > I'm testing the SDCC and I need to use it to compile a program for the PIC > (14 bits) 16F877. As I understood the command should be: > > sdcc -mpic14 -p16f877 filename.c > > But I got an error message that the file p16f877,h was not found ("No such > file or directory). I checked that exist several p18fxxx.h files but none > p16fxxx.h. I checked the stable (2.4.0) and the snapshot versions. I'm using > W2K and tried both installation and zip files (and also using Cygwin). > > I don't know if it's really a bug. If not, please help me sending the or some > instruction files for this e-mail. You will need to convert the "official" Microchip .inc files to .h files. This process is described in the installation instructions. Please note that the 14-bit PIC support in SDCC is likely to cause you a few headaches down the road, as there are a few known bugs that require quite significant work on the 14-bit backend. If you want to use SDCC, the 16-bit PIC family is a better supported choice. If you want to use the 14-bit PIC family, I would recommend either JAL, assembler, or a commercial C compiler (some have a free version, subject to restrictions). |