<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/why-jason-rohrer-uses-only-static-memory-gdt5r28dp" -->

---
title: Why Jason Rohrer uses only static memory | daily.dev
description: Game developer Jason Rohrer discusses why he abandoned dependencies, dynamic memory allocation, and modern frameworks in favor of coding directly against...
canonical: https://daily.dev/posts/why-jason-rohrer-uses-only-static-memory-gdt5r28dp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Why Jason Rohrer uses only static memory | daily.dev
og:description: Game developer Jason Rohrer discusses why he abandoned dependencies, dynamic memory allocation, and modern frameworks in favor of coding directly against...
og:url: https://daily.dev/posts/why-jason-rohrer-uses-only-static-memory-gdt5r28dp
og:image: https://api.daily.dev/og/posts/GDt5R28DP.png
og:image:alt: Why Jason Rohrer uses only static memory
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Why Jason Rohrer uses only static memory

**[Game Engineering Podcast](https://daily.dev/sources/game_eng_podcast)** · 111 min read · 0 upvotes · 0 comments

## Summary

Game developer Jason Rohrer discusses why he abandoned dependencies, dynamic memory allocation, and modern frameworks in favor of coding directly against operating system primitives in C89 for his new game Chess Amphetamine. He explains how a decade of maintaining One Hour One Life taught him that dependencies (SDL 1.2, OpenGL, graphics drivers) inevitably break over time, leading him to write software renderers, avoid malloc/free in favor of static memory allocation, and use the TCC compiler for near-instant rebuilds. He also details his coding style choices, including aligned variable declarations inspired by John Carmack's code, brace placement conventions, and his reliance on Emacs for automatic formatting, alongside a hot-reloading system that snapshots volatile RAM to disk for fast iteration.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=lS6W4RCgDL4>

## Questions this post answers

### Why does Jason Rohrer avoid malloc and free in his game engine code?

Static memory allocation means every buffer and array has a fixed, predefined size declared upfront, so the exact memory footprint is always known and never changes at runtime. This eliminates memory leaks entirely, since there is nothing to free, and removes an entire class of bugs that plagued One Hour One Life, which relied heavily on malloc with caller-free semantics and required constant leak-checker runs before every major commit.

_Developers weighing memory management strategies for game engines can track these tradeoffs on daily.dev._

### Why did SDL 1.2 become a problem for maintaining older games on Mac and Linux?

SDL 1.2 was the standard library available when many older games were originally written, but the ecosystem moved on to SDL2 and now SDL3, leaving SDL 1.2 dependent on legacy support like Debian still packaging it. On Mac, the required library binaries no longer compile because Apple has changed processor architectures multiple times and drops Rosetta-style backwards compatibility after a version or two, breaking builds that depended on the old bytecode.

_Anyone maintaining legacy game builds across Mac and Linux can follow dependency breakage patterns like this on daily.dev._

### How fast is the TCC compiler compared to Go and Rust for compiling C code?

The tiny C compiler (TCC) compiles roughly 300,000 lines of code per second, measured by compiling 31,000 lines of a C89 codebase in about 100 milliseconds. That rate is reported to be roughly three times faster than Go and about a thousand times faster per line of code than compiling Rust, making full rebuilds of a single-programmer project take under a second.

_Developers evaluating compiler speed tradeoffs across C, Go, and Rust can dig into comparisons like this on daily.dev._

---

Tags: [#game-development](https://daily.dev/tags/game-development), [#c](https://daily.dev/tags/c)

[View this post on daily.dev](https://daily.dev/posts/why-jason-rohrer-uses-only-static-memory-gdt5r28dp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Why Jason Rohrer uses only static memory","url":"https://daily.dev/posts/why-jason-rohrer-uses-only-static-memory-gdt5r28dp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/why-jason-rohrer-uses-only-static-memory-gdt5r28dp"},"datePublished":"2026-08-29T16:06:59.315Z","dateModified":"2026-08-29T16:07:24.839Z","description":"Game developer Jason Rohrer discusses why he abandoned dependencies, dynamic memory allocation, and modern frameworks in favor of coding directly against...","image":"https://i.ytimg.com/vi/lS6W4RCgDL4/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/lS6W4RCgDL4/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Game Engineering Podcast","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Game Engineering Podcast","logo":"https://media.daily.dev/image/upload/s--8NEw2a0s--/f_auto/v1735917032/logos/game_eng_podcast","url":"https://daily.dev/sources/game_eng_podcast"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/why-jason-rohrer-uses-only-static-memory-gdt5r28dp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"game-development,c","timeRequired":"PT111M","video":{"@type":"VideoObject","name":"Why Jason Rohrer uses only static memory","description":"Game developer Jason Rohrer discusses why he abandoned dependencies, dynamic memory allocation, and modern frameworks in favor of coding directly against...","thumbnailUrl":"https://i.ytimg.com/vi/lS6W4RCgDL4/sddefault.jpg","uploadDate":"2026-08-29T16:06:59.315Z","duration":"PT111M","url":"https://api.daily.dev/r/GDt5R28DP","embedUrl":"https://www.youtube.com/embed/lS6W4RCgDL4"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Game Engineering Podcast","item":"https://daily.dev/sources/game_eng_podcast"},{"@type":"ListItem","position":3,"name":"Why Jason Rohrer uses only static memory"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/why-jason-rohrer-uses-only-static-memory-gdt5r28dp#faq","mainEntity":[{"@type":"Question","name":"Why does Jason Rohrer avoid malloc and free in his game engine code?","acceptedAnswer":{"@type":"Answer","text":"Static memory allocation means every buffer and array has a fixed, predefined size declared upfront, so the exact memory footprint is always known and never changes at runtime. This eliminates memory leaks entirely, since there is nothing to free, and removes an entire class of bugs that plagued One Hour One Life, which relied heavily on malloc with caller-free semantics and required constant leak-checker runs before every major commit. Developers weighing memory management strategies for game engines can track these tradeoffs on daily.dev."}},{"@type":"Question","name":"Why did SDL 1.2 become a problem for maintaining older games on Mac and Linux?","acceptedAnswer":{"@type":"Answer","text":"SDL 1.2 was the standard library available when many older games were originally written, but the ecosystem moved on to SDL2 and now SDL3, leaving SDL 1.2 dependent on legacy support like Debian still packaging it. On Mac, the required library binaries no longer compile because Apple has changed processor architectures multiple times and drops Rosetta-style backwards compatibility after a version or two, breaking builds that depended on the old bytecode. Anyone maintaining legacy game builds across Mac and Linux can follow dependency breakage patterns like this on daily.dev."}},{"@type":"Question","name":"How fast is the TCC compiler compared to Go and Rust for compiling C code?","acceptedAnswer":{"@type":"Answer","text":"The tiny C compiler (TCC) compiles roughly 300,000 lines of code per second, measured by compiling 31,000 lines of a C89 codebase in about 100 milliseconds. That rate is reported to be roughly three times faster than Go and about a thousand times faster per line of code than compiling Rust, making full rebuilds of a single-programmer project take under a second. Developers evaluating compiler speed tradeoffs across C, Go, and Rust can dig into comparisons like this on daily.dev."}}]}
```

