The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,835 other subscribers

memory spy by b0rk (Julia Evans): visualise how C how variables are represented in memory

Posted by jpluimers on 2026/08/06

[Wayback/Archive] memory spy

It is universal for most other programming languages too as explained in [Wayback/Archive] New playground: memory spy

why is it useful to look at C?

You might be wondering – I don’t write C! Why should I care how C programs represent variables in memory?
In this playground I’m mostly interested in showing people how integers and floats are represented. And low-level languages generally all represent integers and floats in the same way – a 32-bit unsigned int is going to be the same in C, C++, Rust, Go, Swift, etc. The exact name of the type is different, but the representation is the same.
In higher-level languages like Python it’s a little different, but under the hood a float in Python contains a C double, so the C representation is still pretty relevant.

Via

–jeroen

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.