# /usr/local/bin/pic30-coff-gcc-4.0.3 -print-search-dirsīy looking the default library path, you should know which directory in Microchip’s “Program Files/Microchip” that needs to be copied. Issue this command to get the PIC30-GCC’s default library path: # /usr/local/pic/bin/pic30-coff-objdump -S test.o But you can check the compilation result by: You cannot link the program without the linker files (*.gld files from Microchip’s libc). Then apply modified John Steele Scott’s patch ( here) Since Microchip is using Windows, you need to convert the files into Unix files (ie. You’ll find two directories extracted: acme/ and c30_resource/. You need to register yourself before you can download it from Microchip. If the compilation failure due to *.y and/or *.l file, make sure your bison (yacc) and flex in on the system path. The autoconf of the MPLAB package seems like doesn’t check the bison and flex availability, causing the compilation failure at certain point. # sudo apt-get install build-essential bison flex tofrodos
You will need GCC, Bison, Flex, and Tofrodos/Dos2unix utility. The original site for the patches (for C30 v3.00) can be viewed from Peter-Jan Randewijk page and piklab wiki. Here’s my experiment with the MPLAB’s C30 source code.