Code::Blocks can detect and use the SDCC ompiler.
However, the settings chosen for SDCC seem to be out of date since many years and do not work very well with current SDCC.
I had a look at them and updated them to work better with current SDCC. I also created a small test project for STM8 to check that compilation works.
However, I am not very familiar with how how Code::Blocks handles compilers, so a Code::Blocks expert might be able to improve things further. I do however, know SDCC reasonably well.
Philipp
P.S.: One remaining issue is the filename extension of the output file. Currently, there is none. It migth make sense to have one, depending on the generated output format (.ihx for Intel Hex, .s19 for Motorial S19). But I don't know how to do that in Code::Blocks.
This also fixes the bug reported at https://sourceforge.net/p/codeblocks/tickets/371/.
Philipp
Last edit: Philipp Klaus Krause 2017-10-22