proc.cpp

来自「《虚拟机的设计与实现c/cpp》(win32平台)源码 好东西大家熟知不多说」· C++ 代码 · 共 29 行

CPP
29
字号
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+                                                                   +
+ proc.cpp - procedure meta data repository                         +
+                                                                   +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ decalaration                                                      + 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

struct Procedure
{
	U8 text;		/* index into StrTbl of where identifier begins */
	U8 address;		/* address of procedure */
	U4 line;		/* source code line containing declaration */

	struct StackFrame ret;
	U1 nRet;		/* 0 = void return, 1 = returns a value*/
	struct StackFrame *arg;
	U1 nArg;
	U1 iArg;
	struct StackFrame *local;
	U1 nLocal;
	U1 iLocal;
	struct Label *label;
	U2 nLabel;
	U2 iLabel;
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?