just a small note from my side: don't forget about the licensing stuff:

There are also other differences between GPL and BSD licenses, I jut mentioned the one which seems the most important to me. Before making the decision red the licenses carefully.


On 02. 08. 2013 07:18, Mark McDougall wrote:

I've had a bit of a look through the archives but the interface makes it
very difficult to peruse posts over any large length of time...

I'm looking to assist in a project to develop a C-compiler for a custom
soft-core RISC processor. The processor itself has a very small
instruction set, but is designed to run at high clock speeds and is
scalable in terms of data width.

I'm currently in the process of determining the most suitable compiler
stack for the task, and from what I have learned in the last few hours it
seems to come down to SDCC vs. CLANG/LLVM.

I've used the 8051 (Cypress EZUSB) and Z80 ports of SDCC in the past, but
of course have never developed a back-end for it. IIUC there's absolutely
no documentation to assist in the process, and it's simply a case of "Use
The Source, Luke"! That's not necessarily a show-stopper for me, but in
this respect does make LLVM look more attractive.

Anyway, I notice that an STM8 port was added to the trunk recently. May I
inquire as to how much effort (weeks?) that port required? I understand
it's not a trivial task to add a back-end, and it involves developing
assemblers and simulators as well, but I don't really have a feel for how
much overall effort it requires. Obviously it depends to a degree on the
target CPU, but if I knew how long the STM8 port took, I might be able to
extrapolate some ball-park figure for this custom RISC processor!?!

So any statistics on the STM8 port would be greatly appreciated!