$tar -xvfz sdcc-src-xxx-xxx.tar.bz2If it succeed, you should have these directories:
$cd sdcc
$./configure --prefix=/usr
$make
$make install
/usr/bin for execute files
/usr/share/sdcc/doc for documentation
/usr/share/sdcc/include for header files
/usr/share/sdcc/lib for libraries
I tested it with this simple code, I edited with gedit:
#include <8051.h>
void min() {
unsigned char var_1;
var_1 = 0xFF;
}
then saved it, let say test.c. To compile I use this command:
$sdcc test.cand I found the test.ihx file in that directory which is the expected output.
No comments:
Post a Comment