A Formal Specification for Procedure Calling Conventions

作者: Jack W. Davidson , Mark W. Bailey

DOI:

关键词: Calling conventionDocumentationCompilerFormal specificationConventionCode (semiotics)World Wide WebComputer scienceInterface (Java)Programming languageProcess (engineering)

摘要: Procedure calling conventions are used to provide uniform procedure-call interfaces. Applications, such as compilers and debuggers, which generate, or process procedures at the machine-language level require an accurate description of convention in use. Until now, portion application that concerns itself with procedure call interface was implemented ad-hoc manner. The resulting code is complicated details, difficult maintain, often incorrect. In this paper, we present a model language, called CCL, for specifying conventions. language can be automatically generate calling-convention specific portions applications. It also serves documentation given convention. CCL provides concise natural method easy read modify. By using specification code, one enhance retargetablility applications make use Additionally, different easily implemented, thereby simplifying experimentation increase efficiency call.

参考文章(4)
Paul W. Abrahams, Typographical extensions for programming languages ACM SIGPLAN Notices. ,vol. 28, pp. 61- 68 ,(1993) , 10.1145/157352.157359
Jack W. Davidson, David B. Whalley, Methods for saving and restoring register values across function calls Software - Practice and Experience. ,vol. 21, pp. 149- 165 ,(1991) , 10.1002/SPE.4380210204
Gerry Kane, Joe Heinrich, MIPS RISC architecture ,(1987)
Brian W. Kernighan, Dennis M. Ritchie, The C Programming Language ,(1978)