Function arguments push order

后端 未结 2 1720
失恋的感觉
失恋的感觉 2021-02-06 00:32

Why are function arguments pushed on the stack in right to left order?

2条回答
  •  灰色年华
    2021-02-06 01:15

    To enable the existence of functions with a variable number of arguments, like printf. The function can extract the first one or two arguments and then use their values to deduce the total number of arguments on the stack.

提交回复
热议问题