Hi guys I'm a newbee and I have annoying trouble using sdcc
According to sdcc's user guide (http://sdcc.sourceforge.net/doc/sdccman.pdf), I create 1.c like this
#include <string.h> char str1[10]; void main(void) { strcpy(str1, "testing"); }
then sdcc 1.c
sdcc 1.c
then ls
ls
I just find 1.asm 1.c 1.lk 1.lst 1.rel 1.sym, there's no .ihx file and I didn't get any warnings
besides i have already double check the sdcc directory by
sdcc --print-search-dirs programs: /usr/bin datadir: /usr/bin/../share /usr/share includedir: /usr/bin/../share/sdcc/include/mcs51 /usr/share/sdcc/include/mcs51 /usr/bin/../share/sdcc/include /usr/share/sdcc/include libdir: /usr/bin/../share/sdcc/lib/small /usr/share/sdcc/lib/small libpath:
I have googled this problem but it seems it's quite rare. Any suggestions?
PS: sorry for the bad english....
sdcc --verbose 1.c sdcc: Calling preprocessor... sdcc: sdcpp -nostdinc -Wall -std=c11 -obj-ext=.rel -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_SMALL -D__SDCC_FLOAT_REENT -D__SDCC=3_6_0 -D__SDCC_VERSION_MAJOR=3 -D__SDCC_VERSION_MINOR=6 -D__SDCC_VERSION_PATCH=0 -DSDCC=360 -D__SDCC_REVISION=9615 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__STDC_UTF_16__=1 -D__STDC_UTF_32__=1 -isystem /usr/bin/../share/sdcc/include/mcs51 -isystem /usr/share/sdcc/include/mcs51 -isystem /usr/bin/../share/sdcc/include -isystem /usr/share/sdcc/include 1.c sdcc: Generating code... sdcc: Calling assembler... sdcc: sdas8051 -plosgffw 1.rel 1.asm sdcc: Calling linker... sdcc: sdld -nf 1.lk
Is there anything wrong?
Works fine for me. Maybe try updating your install?
4,844 1.asm 80 1.c 715 1.ihx 238 1.lk 10,684 1.lst 13,367 1.map 1,192 1.mem 2,016 1.rel 10,684 1.rst 31,836 1.sym
sdcc -v 3.6.8 9949 (MINGW64)
>sdcc --verbose 1.c sdcc: Calling preprocessor... sdcc: sdcpp -nostdinc -Wall -std=c11 -obj-ext=.rel -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_SMALL -D__SDCC_FLOAT_REENT -D__SDCC=3_6_8 -D__SDCC_VERSION_MAJOR=3 -D__SDCC_VERSION_MINOR=6 -D__SDCC_VERSION_PATCH=8 -DSDCC=368 -D__SDCC_REVISION=9949 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__STDC_UTF_16__=1 -D__STDC_UTF_32__=1 -isystem "c:\Projects\z80\sdcc-code\sdcc\bin\..\include\mcs51" -isystem "c:\Projects\z80\sdcc-code\sdcc\bin\..\include" "1.c" sdcc: Generating code... sdcc: Calling assembler... sdcc: sdas8051 -plosgffw "1.rel" "1".asm sdcc: Calling linker... sdcc: sdld -nf "1.lk"
Log in to post a comment.
Hi guys
I'm a newbee and I have annoying trouble using sdcc
According to sdcc's user guide (http://sdcc.sourceforge.net/doc/sdccman.pdf), I create 1.c like this
then
sdcc 1.c
then
ls
I just find 1.asm 1.c 1.lk 1.lst 1.rel 1.sym, there's no .ihx file and I didn't get any warnings
besides i have already double check the sdcc directory by
I have googled this problem but it seems it's quite rare.
Any suggestions?
PS: sorry for the bad english....
Is there anything wrong?
Works fine for me. Maybe try updating your install?
sdcc -v
3.6.8 9949 (MINGW64)