- Expert C++
- Vardan Grigoryan Shunguang Wu
- 89字
- 2021-06-24 16:33:54
Intermediate code generation
After all the analysis is completed, the compiler generates intermediate code that is a light version of C++ mostly C. A simple example would be the following:
class A {
public:
int get_member() { return mem_; }
private:
int mem_;
};
After analyzing the code, intermediate code will be generated (this is an abstract example meant to show the idea of the intermediate code generation; compilers may differ in implementation):
struct A {
int mem_;
};
int A_get_member(A* this) { return this->mem_; }
推薦閱讀
- Mastering OpenLayers 3
- 計算機網絡
- Mastering NetBeans
- 零基礎學Scratch少兒編程:小學課本中的Scratch創意編程
- HTML5+CSS3+JavaScript Web開發案例教程(在線實訓版)
- FFmpeg入門詳解:音視頻原理及應用
- Python時間序列預測
- Java高并發核心編程(卷1):NIO、Netty、Redis、ZooKeeper
- Procedural Content Generation for C++ Game Development
- Learning jQuery(Fourth Edition)
- uni-app跨平臺開發與應用從入門到實踐
- Go語言入門經典
- Get Your Hands Dirty on Clean Architecture
- C語言程序設計教程
- 讓Python遇上Office:從編程入門到自動化辦公實踐