next up previous
Next: Level 1 Up: Projects on gcc Intermediate Previous: To Do for Each


Level 0

An extremely trimmed down version of C is used. It is expression oriented, uses only integer addition, the assignment operation and variables. This is a basic preparatory exercise to get a GCC version 4.0.1 setup on the system (if required), and start exploring it. We assume a Pentium under Linux. We need to get familiarised with the various ``intermediate representations'' used by GCC. Conceptually, GCC (4.0.x) transforms a given source as:

Source $\rightarrow$ AST $\rightarrow$ Gimple $\rightarrow$ RTL IR $\rightarrow$ Target ASM.

We provide some example source programs:

  1.       main()
          {   int a,b,c;
              a = b+c;
          }
    
  2.       main()
          {   int a,x,y,z;
              x = a+z+y+2;
          }
    



2006-01-08