What does “cdecl” stand for?

前端 未结 4 1038
广开言路
广开言路 2021-02-02 09:19

Yes, I know that \"cdecl\" is the name of a prominent calling convention, so please don\'t explain calling conventions to me. What I\'m asking is what the abbreviation (?) \"cd

4条回答
  •  春和景丽
    2021-02-02 09:57

    It comes from C function that was declared (in contrast to a C function that was not declared which was common in K&R C).

    At the time it was coexisting with pascal calling convention (wher the callee cleared the stack), so it kind of made sense to call it after the programming language.

    Everything you might ever want to know about calling conventions.

提交回复
热议问题