On Sat, Oct 22, 2011 at 9:21 PM, ???f任 <chenwj@xxxxxxxxxxxxxx> wrote: >> > 2. ???? 1/2 - 建立 LLVM Module >> > >> >> 能不能在这里先介绍一下 LLVM module的概念。我知道你后边有一个link是关 >> 于这个的,但是最好能在这里简单说明一下。 > > 我前一篇有?v到 LLVM Module。 > > "Module 是?b?d LLVM IR 的容器 (container),..." > > ?Q句???f,整???Y??是底下?@??: > > ------------ Module ------- > | > | ------ Function(s) ---- > | | > | | ---- Block(s) ----- > | | | > | | | LLVM IR(s) > | | | > > > ?@???? LLVM Module 的概念有比?^清楚??? XD > > 补充一点。LLVM的PU是module而不是func。 可以牵强的说LLVM每次为一个func emit code,但是实际上module才是一个PU。 好像是再很多情况下一个module只包含一个func和一些其他类似与定义的东西,包含多个func的情况是什么呢? > -- > Wei-Ren Chen (???f任) > Computer Systems Lab, Institute of Information Science, > Academia Sinica, Taiwan (R.O.C.) > Tel:886-2-2788-3799 #1667 > >