APE software: compilation chain

Schifano S. Fabio - INFN


The main steps to compile a program are:

  1. high level compilation

  2. post optimization

    1. MOVE remover:
      A <- B
      E <- op (A, C, D)
      ==> !! A <- B
      E <- op (B, C, D)
    2. NORMALIZATION
      A <- B * C
      E <- A + D
      ==> !! A <- B * C
      E <- B * C + D
    3. peep-hole optimization: low-latency instruction substitution
      JSNORM_PP 100 0 0 101
      ==> JIOR 100 0 101

  3. instruction scheduling

  4. register allocation

  5. jex generation

Suivant