- 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_; }
推薦閱讀
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- Python程序設(shè)計(jì)教程(第2版)
- Pandas Cookbook
- Learning Docker
- Java完全自學(xué)教程
- 跟“龍哥”學(xué)C語(yǔ)言編程
- Flink SQL與DataStream入門、進(jìn)階與實(shí)戰(zhàn)
- Python高級(jí)編程
- R語(yǔ)言編程指南
- Linux環(huán)境編程:從應(yīng)用到內(nèi)核
- PostgreSQL Replication(Second Edition)
- Hands-On Natural Language Processing with Python
- C#程序設(shè)計(jì)教程(第3版)
- Learning Nessus for Penetration Testing
- 百萬(wàn)在線:大型游戲服務(wù)端開(kāi)發(fā)