What is the direction of stack growth in most mode

2019-01-01 12:18发布

I am preparing some training materials in C and I want my examples to fit the typical stack model.

What direction does a C stack grow in Linux, Windows, Mac OSX (PPC and x86), Solaris, and most recent Unixes?

标签: stack
7条回答
像晚风撩人
2楼-- · 2019-01-01 12:57

Stack grows down on x86 (defined by the architecture, pop increments stack pointer, push decrements.)

查看更多
登录 后发表回答