this post was submitted on 11 Feb 2025
940 points (96.8% liked)

Programmer Humor

20499 readers
1340 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 3 days ago (1 children)

What about stacks grows to higher addresses?

[–] [email protected] 1 points 3 days ago (1 children)

Im unfamiliar with this as well. If you are allocating memory for a stack, why does it matter which direction it populates data? Is this just a convention?

[–] [email protected] 2 points 3 days ago* (last edited 3 days ago) (1 children)

I asked deepseek: Downward-growing stacks** are more common in many architectures (e.g., x86, ARM). This convention originated from early computer architectures and has been carried forward for consistency.

Funny, I can't remember, because I did a lot of assembler.

[–] [email protected] 2 points 3 days ago

Ah thank you so its just a convention.