955
you are viewing a single comment's thread
view the rest of the comments
[-] gnutrino@programming.dev 25 points 1 week ago* (last edited 1 week ago)

https://softwareengineering.stackexchange.com/questions/386194/why-do-we-still-grow-the-stack-backwards

TL;DR: For historical reasons stacks growing down is defined in hardware on some CPUs (notably x86). On other CPUs like some ARM chips for example you (or more likely your compiler's developer) can technically choose which direction stacks go but not conforming to the historical standard is the choice of a madman.

this post was submitted on 11 Feb 2025
955 points (96.6% liked)

Programmer Humor

20033 readers
253 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS