‹ BackHN Continuity

Thread

SDCC – Small Device C Compiler

137 points · 37 comments · lioeters

  1. dmitrygr · · focus · HN ↗
    SDCC has the best OSS 8051 compiler. It is buggy as hell, but it is free. Sometimes that is good enough.
    1. hacker_homie · · focus · HN ↗
      I used it for some toy projects never ran into "bugs" as in this is just broken, but it's quirky for sure.
      1. megous · · focus · HN ↗
        Slightly larger switch() statement and you'll run into peephole optimizer just eating away at jump target instructions without telling the jumper to adapt the destination address for the case. Of course the result is completely random code execution. Things like that. :)

        But I wrote non-trivial code with sdcc regardless. My favorite 8051 targets are FX2LP USB boards from aliexpress. :)

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.