All ideasMore in Work

An LLM wrote a C compiler for an old chip in about 90 minutes, near the reference size

Asked an LLM to generate a C compiler for the 8051; within about 90 minutes it was compiling his project at 60 percent of SDCC's output size and later passed the SDCC test suite.

90 minsaved

How it works

  1. He asks an LLM to generate the compiler
  2. Within about 90 minutes it compiles his project at 60 percent of the reference compiler's output size
  3. It later passes the reference test suite

Why it’s worth knowing

Ninety minutes to a compiler that beats the reference on size.

Where it’s from

Summarized from a public post on news.ycombinator.com. See the original ↗

Upgraded prompt

A ready-to-use prompt for this idea, built from research on what makes AI agents do the job right: who the AI should be, the exact steps, and a check to make sure it was done the way you wanted.

1Who the AI should be
2The prompt, with the steps
3The check when it’s done
Upgraded prompts are coming soon.

Try next

Every idea is a real post from someone who tried it, summarized in our words, with a link to the original. App names are swapped for plain words.