Translating xeyes to Eiffel

Installing CIL (if not yet done):
git clone git://cil.git.sourceforge.net/gitroot/cil/cil; cd cil
./configure
make
export PATH=$PATH:`pwd`/bin

1. CIL preprocessing

  1. Downloading it:
    git clone git://anongit.freedesktop.org/xorg/app/xeyes; cd xeyes
  2. Configuring it:
    ./autogen.sh
  3. Removing gcc optimization flags (results in more readable code):
    sed -i "s/ -O2//" Makefile
  4. Building it:
    make CC="cilly --merge --save-temps"
This created the merged C file xeyes.cil.c.

2. C2Eif

Start C2Eif, select the created xeyes.cil.c, an output directory, -lXmu; -lXrender; -lm for the required libraries, and press Compile.

3. EiffelStudio

Start EiffelStudio and open xeyes.ecf from the previously specified output directory. This will already compile it, all you have to do is press Run and enjoy xeyes running in Eiffel :-)