我cpp的代碼 int main(int argc, char** argv){
}
我用下面的命令來編譯和鏈接它: // I want to read the result ir
clang -S -emit-llvm main.cpp
// I want to compile directly from ir
llc -filetype=obj main.ll
lld -fl
雖然與LLVM編譯的代碼: struct bar {
int int1;
int int2;
char char1;
char char2;
char char3;
};
struct foo {
struct bar array[16];
};
int func(struct foo *f, int num) {