Translating xeyes to Eiffel

Installing CIL (if not yet done):
git clone git://; cd cil
export PATH=$PATH:`pwd`/bin

1. CIL preprocessing

  1. Downloading it:
    git clone git://; cd xeyes
  2. Configuring it:
  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 :-)