Notes:
> /usr/bin/gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/specs gcc version 2.7.2.3 > /usr/local/bin/gcc -v Reading specs from /usr/local/libexec/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs gcc version 2.95.2 19991024 (release)You can type "which gcc" to see which version you use by default.
There are two ways to eliminate this confusion, and both are equally good. If you prefer to use gcc version 2.7.2.3, the easiest thing to do is to copy a new file called "Makefile_for_gcc_2.7.2.3" in the H1 directory into your local directory. The only difference with this Makefile is that it defines "CC" to be "/usr/bin/gcc" rather than just "gcc". Hence you can do the following:
> cd ~/213hw/H1 > cp /afs/cs/academic/class/15213-s00/H1/Makefile_for_gcc_2.7.2.3 MakefileYou may have to remove a1.s, etc. before you type "make a1.s" in order for the Makefile to decide that it is stale. Using this Makefile, you should be able to generate assembly and object files that are identical to the *-solve.[so] files that we gave you.
The second option is to continue using the version of gcc that you are already using (i.e. 2.95.2), but compare your output with the assembly and object files in /afs/cs/academic/class/15213-s00/H1/gcc_2.95.2_files. These files were generated using /usr/local/bin/gcc on the fish cluster.
Back to CS213 home page.