Get the latest tech news

Beating the Compiler


compiler In modern times, everyone knows that writing assembly is a fool's errand: compilers are the result of literal engineer-centuries of work, and they know the processor much better than you do. And yet – one hears rumors.

Mike Pall specifically calls out keeping state in registers and indirect threading as two contributors to its speed, which can only be accomplished reliably in assembly. Finally, when exiting (via the BRK opcode), we need to update the data and return stack indices, moving values from registers into the appropriate memory addresses: The most common set of peripherals is the Varvara system, which adds everything you need to make the CPU into an actual computer: a screen, keyboard and mouse input, audio, etc.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of compiler

compiler

Related news:

News photo

LPython 0.22 Released For Ahead-Of-Time Compiler For Python

News photo

AMD's AOMP 19.0-2 Compiler Brings Zero-Copy For CPU-GPU Unified Shared Memory

News photo

Optimizing the Roc parser/compiler with data-oriented design