what is FAR PASCAL?

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

    Going by memory here,

    FAR is a fall back to 16-bit days when heap memory was was segmented. NEAR data was limited in size and faster, FAR was allowed to be larger but more expensive.

    To the best of my knowledge, in 32-bit land it's a macro that collapses to nothing.

    PASCAL is a calling convention also used heavily in 16-bit days. It has since been replaced by stdcall.

    Both are left in for backward compatibility.

    0 讨论(0)
提交回复
热议问题