I am running Code::Blocks version 16.01 on Windows 10. The compiler I use is SDCC (Small Device C Complier) version 3.6.0.
Description of problem.
As I "Build" my project after, I was look up the directory "test\obj\Debug\", a source file named sourceFile.c is to be compiled to named sourceFile.o, but linker of the SDCC (Small Device C Complier) unsupproted the object file with suffix ".o". SDCC manual explicit say that the object file with suffix ".rel", so I don't obtain a executable file or with suffix .ihx, .hex.
Build log:
[code]
sdcc.exe -mmcs51 --model-small --debug --out-fmt-ihx --model-large -mmcs51 --parms-in-bank1 --fommit-frame-pointer --verbose --debug -IC:\xx\sdcc_install\include -IC:\xx\sdcc_install\include\mcs51 -c sourceFile.c -o obj\Debug\sourceFile.o
at 1: warning 118: option '--fommit-frame-pointer-ger supported 'use --fomit-frame-pointer instead'
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -std=c11 -I"C:\xx\sdcc_install\include" -I"C:\xx\sdcc_install\include\mcs51" -DSDCC_PARMS_IN_BANK1 -obj-ext=.rel -DSDCC_CHAR_UNSIGNED -DSDCC_MODEL_LARGE -DSDCC_FLOAT_REENT -DSDCC=3_6_0 -DSDCC_VERSION_MAJOR=3 -DSDCC_VERSION_MINOR=6 -DSDCC_VERSION_PATCH=0 -DSDCC=360 -DSDCC_REVISION=9615 -DSDCC_mcs51 -DSTDC_NO_COMPLEX=1 -DSTDC_NO_THREADS=1 -DSTDC_NO_ATOMICS=1 -DSTDC_NO_VLA=1 -DSTDC_ISO_10646=201409L -DSTDC_UTF_16=1 -DSTDC_UTF_32=1 -isystem "C:\xx\sdcc_install\bin..\include\mcs51" -isystem "C:\xx\sdcc_install\bin..\include" "sourceFile.c"
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: sdas8051.exe -plosgffwy "obj\Debug\sourceFile.o" "obj\Debug\sourceFile".asm
sdcc.exe -LC:\xx\sdcc_install\lib\small -LC:\xx\sdcc_install\lib\small-stack-auto -LC:\xx\sdcc_install\lib\medium -LC:\xx\sdcc_install\lib\large -LC:\xx\sdcc_install\lib\large-stack-auto -o bin\Debug\test.ihx -mmcs51 --model-small --debug --out-fmt-ihx --model-large -mmcs51 --parms-in-bank1 --fommit-frame-pointer --verbose --debug --xram-size 4096 --iram-size 256 --code-size 65536 --out-fmt-ihx obj\Debug\sourceFile.o
at 1: error 119: don't know what to do with file 'obj\Debug\sourceFile.o'. file extension unsupported
[/code]
Not understand the "Related" section in your post.
Last edit: ollydbg 2016-08-31
I might look into this in the next few daysd. I already noticed
in src/plugins/compilergcc/resources/compilers/compiler_sdcc.xml src/plugins/compilergcc/resources/compilers/options_sdcc.xml
Also, the list of compiler options seems very incomplete, even missing some target architectures.
Philipp
Since the scope of my changes to better support SDCC extend beyond the scope of this ticket, I opened a separate one for the patch:
https://sourceforge.net/p/codeblocks/tickets/567/
Philipp