📄 global.cpp
字号:
// This file declares some global variables
//
// Written by bood, boodweb@163.com, http://boodweb.126.com
// 2004-08-06
#pragma warning(disable:4786)
#include "global.h"
using namespace std;
// Define file streams
//
// For reading source file
ifstream fsource;
// For preprocessed source file
ofstream fpreproc;
// For outputting tokens-file
ofstream ftoken;
// For outputting syntax-file
ofstream fsyntax;
// For outputting symbol-file
ofstream fsymbol;
// For code generation
ofstream fcode;
//
// File streams define ended
int lineno=1; // Line number
int location=0; // Location of variables in memory, relative
// to the fp
int bParseError=0; // Error flag
int bSemanticError=0;
int globalAlloc=0; // Global memory needed
//
// Values below affect the generated code
const int Ret_and_Ofp = // Space taken up before parameters
2 + // Return ip, take 2 bytes in 16bit code
2; // Old frame pointer, i.e. register BP
const int Int_Bytes = 4; // Length of integer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -