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:
We provide some example source programs:
main()
{ int a,b,c;
a = b+c;
}
main()
{ int a,x,y,z;
x = a+z+y+2;
}