what is FAR PASCAL?

后端 未结 7 1611
故里飘歌
故里飘歌 2020-12-10 01:00

I was wondering why in some source code there are these macros like FAR and PASCAL. What do they mean and do?

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 01:31

    Specifically PASCAL says the arguments to the function are passed in left to right order, this reduces the size of the code (because the caller knows how big the stack is and so can clean it up)

    The C stdcall passes arguments right to left, this means you can have a variable number of arguments, but more code is needed for clear up.

提交回复
热议问题