Changes between Version 3 and Version 4 of CompilationPhases


Ignore:
Timestamp:
12/30/08 21:34:11 (12 years ago)
Author:
ehuelsmann
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CompilationPhases

    v3 v4  
    2222== Compilation phase 2: p2 ==
    2323
    24 This phase creates the compilation output.
     24This phase creates byte code output.
    2525
    2626It does this by:
    2727
    28  1. Creating java byte code
    29  2. Analyzing the byte code, deleting unused branches (jvm.lisp::OPTIMIZE-CODE)
    30  3. Optimize byte code by walking the byte codes,
     28 1. Using the outcomes from p1
     29 2. Breaking down forms into small pieces
     30 3. Creating java 'instructions' from the small pieces
     31
     32The generated instructions differ from byte code in so far that they are not stored in arrays of octets, but instead in an array (or list) of 'instruction'-structures.
     33
     34== Byte code munging phase ==
     35
     36This phase does byte code calculations
     37
     38 1. Analyzing the byte code, deleting unused branches (jvm.lisp::OPTIMIZE-CODE)
     39 2. Optimize byte code by walking the byte codes,
    3140    replacing inefficient sequences with more efficient ones
    32  4. Writing out a file according to the format specified for .class files
     41 3. Translating the instructions from the instructions array to an array with byte-codes (octets) 
     42 3. Writing out a file according to the format specified for .class files
    3343
    34  ''It's unclear to me whether this is a single '.cls' file or that this applies to a full file compile.''