- 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_; }
推薦閱讀
- DevOps:軟件架構師行動指南
- Learning Python Web Penetration Testing
- Spring Cloud Alibaba核心技術與實戰案例
- Intel Galileo Essentials
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- 秒懂設計模式
- Mastering Python High Performance
- Python編程與幾何圖形
- TradeStation交易應用實踐:量化方法構建贏家策略(原書第2版)
- C# 8.0核心技術指南(原書第8版)
- R語言與網絡輿情處理
- Android應用案例開發大全(第二版)
- 零基礎學C語言(第4版)
- 深入實踐DDD:以DSL驅動復雜軟件開發
- 深入分析GCC