Discussion
Loading...

Discussion

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
psf
psf
@psf@oldbytes.space  ·  activity timestamp 2 weeks ago

The #DeSmetC compiler codebase is the hairiest code I've had the experience of hacking. K&R style, many global variables, short cryptic names, spooky action at a distance, the shotgun-surgery pattern for type handling splatted around everywhere, oh baby.

For all that, I managed to fix the codegen bug from the Github issues on the ~second day of working on the compiler... that's the beauty of a small codebase.

My fork is here: https://gitlab.cs.washington.edu/fidelp/open_desmet_c
1 bug down, 999 to go...

#retrocomputing

DOSBox-X displaying some successful compiling/assembling messages.
DOSBox-X displaying some successful compiling/assembling messages.
DOSBox-X displaying some successful compiling/assembling messages.

Shotgun surgery - Wikipedia

  • Copy link
  • Flag this post
  • Block
psf
psf
@psf@oldbytes.space replied  ·  activity timestamp 2 weeks ago

The #DeSmetC compiler codebase is the hairiest code I've had the experience of hacking. K&R style, many global variables, short cryptic names, spooky action at a distance, the shotgun-surgery pattern for type handling splatted around everywhere, oh baby.

For all that, I managed to fix the codegen bug from the Github issues on the ~second day of working on the compiler... that's the beauty of a small codebase.

My fork is here: https://gitlab.cs.washington.edu/fidelp/open_desmet_c
1 bug down, 999 to go...

#retrocomputing

DOSBox-X displaying some successful compiling/assembling messages.
DOSBox-X displaying some successful compiling/assembling messages.
DOSBox-X displaying some successful compiling/assembling messages.

Shotgun surgery - Wikipedia

  • Copy link
  • Flag this comment
  • Block
psf
psf
@psf@oldbytes.space replied  ·  activity timestamp 2 weeks ago

Ooh, the-grue, the current maintainer of OpenDC #DesmetC, took my code-gen patch, how awesome! Usually when I pick up an old codebase like this, the maintainer is long gone.

So @linear if you end up wanting to submit patches, that's the place: https://github.com/the-grue/OpenDC
My fork will remain just an unofficial fork.

GitHub

GitHub - the-grue/OpenDC: DeSmet C - Open source and completely built with latest toolchain

DeSmet C - Open source and completely built with latest toolchain - the-grue/OpenDC
  • Copy link
  • Flag this comment
  • Block
Matthijs De Smedt
Matthijs De Smedt
@anji@metalhead.club replied  ·  activity timestamp 2 weeks ago

@psf I had never heard of this before. What an odd name for a C compiler! I like it.

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct