• Gigamegs
    link
    fedilink
    Deutsch
    arrow-up
    4
    ·
    4 hours ago

    What about stacks grows to higher addresses?

    • SamboT@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 hour ago

      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?

      • Gigamegs
        link
        fedilink
        Deutsch
        arrow-up
        1
        ·
        44 minutes ago

        I ask 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 back in my youth.