what is FAR PASCAL?

后端 未结 7 1633
故里飘歌
故里飘歌 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:46

    It's probably some redundant / obsolete coding left over from the 16bit era.

    FAR was used in 16 bit applications to indicated that the address required more than 16 bits.

    PASCAL(altion) is a conversion type, it lets the compiler know how the stack is arranged (using PASCAL calling conventions) so that the compiler can pass the appropriate paramaters to and from the function.

    HTH

提交回复
热议问题