Intermediate data format

intermediate data format specification and caltech intermediate format graphics file
Dr.MasonHanks Profile Pic
Dr.MasonHanks,Germany,Teacher
Published Date:23-07-2017
Your Website URL(Optional)
Comment
MIT MIT 6.035 6.035 Intermediate Formats Martin Rinard Laboratory for Computer Science Massachusetts Massachusetts Institute Institute of of T Technology echnologyProg gram Rep p resentation Goals • Enable Prog gram Analy ysis and Transformation – Semantic Checks, Correctness Checks, Optimizations • Structure Structure Translation Translation to to Machine Machine Code Code – Sequence of Steps Semantic Analysis Analysis High High Level Level Low Low Level Level Parse Machine Intermediate Intermediate Tree Code Representation Representation Hig gh Level IR • Preserves Object Structure • Preserves Structured Flow of Control • Primary Goal: Analyze Program Low Level IR • Moves Data Model to Flat Address Space • Eliminates Eliminates Structured Structured Control Control Flow Flow • Suitable for Low Level Compilation Tasks – Register Register Allocation Allocation – Instruction Selection Examp p les of Obj ject Rep p resentation and Program Execution (Thi (Thi s h h appens wh h en program runs) )Examp ple Vector Class class vector int int v v; ; void add(int x) int i; i = 0; while (i v.length) vi = vi+x; i = i+1; Rep p resenting g Array ys • Items Stored Contig g uously y In Memory y • Length Stored In First Word 3 7 4 8 • Color Code – Red - generated by compiler automatically –Blue, Yellow, Lavender - program data or code – Magenta - executing code or data Rep p resenting g Vector Obj jects • First Word Points to Class Information – Method Table, Garbage Collector Data • Next Next Words Words Have Have Object Object Fields Fields – For vectors, Next Word is Reference to Array Class Info 3 7 4 8 Invoking g Vector Add Method vect.add(() 1); • Create Activation Record Cl lass Inf fo 3 7 4 8 Invoking g Vector Add Method vect.add() (1); this • Create Activation Record – this this onto onto s stack tack Cl l ass Inf fo 3 7 4 8 Invoking g Vector Add Method vect.add(() 1); this • Create Activation Record 1 x – this this onto onto s stack tack – parameters onto stack Cl l ass Inf fo 3 7 4 8 Invoking g Vector Add Method vect.add() (1); this • Create Activation Record 1 x – this this onto onto s stack tack i – parameters onto stack – space space for for l locals ocals o on n s stack tack Cl lass Inf fo 3 7 4 8 Executing g Vector Add Method void add(int x) int i; this 1 x i = 0; i while (i v.length) v i = v i +x; ; i = i+1; Cl l ass Inf f o 3 7 4 8 Executing g Vector Add Method void add(int x) int i; this 1 x i = 0; 0 i while (i v.length) v i = v i +x; ; i = i+1; Cl l ass Inf f o 3 7 4 8 Executing g Vector Add Method void add(int x) int i; this 1 x i = 0; 0 i while (i v.length) v i = v i +x; ; i = i+1; Cl l ass Inf f o 3 7 4 8 Executing g Vector Add Method void add(int x) int i; this 1 x i = 0; 0 i while (i v.length) v i = v i +x; ; i = i+1; Cl l ass Inf f o 3 7 4 8 Executing g Vector Add Method void add(int x) int i; this 1 x i = 0; 0 i while (i v.length ) v i = v i +x; ; i = i+1; Cl lass Inf f o 3 7 4 8 Executing g Vector Add Method void add(int x) int i; this 1 x i = 0; 0 i while (i v.length ) v i = v i +x; ; i = i+1; Cl lass Inf f o 3 7 4 8 Executing g Vector Add Method void add(int x) int i; this 1 x i = 0; 0 i while (i v.length) v i = v i; +x; i = i+1; Cl l ass Inf f o 3 7 4 8 Executing g Vector Add Method void add(int x) int i; this 1 x i = 0; 0 i while (i v.length) v i = v i; +x; i = i+1; Cl l ass Inf f o 3 7 4 8 Executing g Vector Add Method void add(int x) int i; this 1 x i = 0; 0 i while (i v.length) v i = v i +x; ; i = i+1; Cl l ass Inf f o 3 7 4 8

Advise: Why You Wasting Money in Costly SEO Tools, Use World's Best Free SEO Tool Ubersuggest.