简体   繁体   English

如何用3地址代码表示类似C的语言的结构?

[英]How to represent structure in a C like language in 3-address code?

What is the three address code IR for a C code-snippet declaring a structure? 声明结构的C代码片段的三个地址代码IR是什么?

struct name{
char c;
int i;
}

The Three Address Code primarily works with assignments. 三地址代码主要适用于分配。 You can represent only the assignments of the fields. 您只能代表字段的分配。 All fields has an address. 所有字段都有一个地址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM