• @[email protected]
    link
    fedilink
    24 months 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?

    • @[email protected]
      link
      fedilink
      Deutsch
      3
      edit-2
      4 months ago

      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.