发明名称 COMPILER
摘要 PURPOSE:To calculate and display automatically the necessary number of stacks when a source program of a dedicated CPU is converted into an object program and executed by generating the source program in high class language. CONSTITUTION:The source program is read by one line firstly, the syntax of the source input is analyzed, and necessary processing is performed. When the source input is the start of a function, a maximum value counter and a current value counter are cleared and an object required to start the function is outputted to process one line. When the source input is a local variation declaration, the number of necessary stacks corresponding to the type of the declaration is denoted as N and a subroutine NSTACK is called. The parameter N is added to the contents of the current value counter to update the current in-use number of stacks. Then the maximum number of stacks is compared with the contents of the current value counter and when the current value is larger than the maximum value, the contents of the maximum value counter is updated to the current value.
申请公布号 JPS6084640(A) 申请公布日期 1985.05.14
申请号 JP19830192456 申请日期 1983.10.17
申请人 TATEISHI DENKI KK 发明人 MIYAGAWA AKIRA
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址