Join the discussion
Write your take first — we'll ask for email only when you're ready to publish.
- Hacker News
- I use SDCC for 8051.
I have started to notice that programming with an LLM it seems to make little difference if I get it to write the entire program in assembly language rather than c.
by andrewstuart - Didn't expect to see SDCC being discussed here today. Spent quite a bit of time tinkering with it back then definitely a nostalgic feeling.by phatbmt4444
- It's great they do C23. I'd love to get three-four projects worth of things merged together for a good reason:
- TinyCC, SDCC, Musl and Cosmopolitan Libc
Reason is that I require a quick fast portable compiler with a decent runtime that can also be embedded into a larger runtime, like the way Bun does - while keeping runtime small and portable.
SDCC does not need the same amount of bloat - having decent small C runtime is a job in itself. Fixing it once could allow a better compiler that isn't quite as bloated as LLVM nor as small like TinyCC.
That gap isn't solved.
by vkaku - SDCC has been a nice resource for a variety of MCUs. I wish it had support for some of the 8-bit PIC chips like the PIC10 and PIC12... maybe one day!by blackfawn
- I initially added the MOS 6502 support by hacking the HC08 backend. It was awful, someone else (Gabriele Gorla) cleaned it up and got it merged to the mainline. There are other options these days for optimized 6502, like llvm-mos or Oscar64.by sehugg
- SDCC has the best OSS 8051 compiler. It is buggy as hell, but it is free. Sometimes that is good enough.by dmitrygr
- I have fond memories of using it for PIC16 as a teenager, ~25 years ago. It was a huge step up from writing assembly. My parents bought me a Microchip PICSTART Plus, but refused to pay for a Hitech-C compiler license. :)
- I have a few Rabbit boards stashed away that I never got around to toying with, mostly because of the obscure horror IDE. At some point I noticed that SDCC might work and there might even have been a flasher. So, now it's only a matter of having the time and motivation. Which tends to be pointed at many other things.by a96