(SDU Logo) Institut for Matematik og Datalogi
Syddansk Universitet Institut for Matematik og Datalogi

Compiler (project and theory) 2010

Files from the exercises

Worknote 5

Assembly code examples: all

Worknote 2

Flex scanners: Political correct, White space and line length, HTML tags

Worknote 1

Hashtable
Binary tree

Source Code Inclusion in Latex

One of the methods is to use the package listings.

Custom Makefile in Eclipse and Netbeans

It might be a good idea to manage the Makefile of a project manually, instead of letting the IDE do it. One way of changing the project is described below. (let me know of any errors)

Eclipse

  1. Go to Properties for the project (alt + enter) and select C/C++ Build
  2. Uncheck "Generate Makefiles automatically", and change the Build directory to the root of the project folder.
  3. Create a makefile called "Makefile" in the root of the project.>/li>
The old build folders should be safe to delete now.

Netbeans

  1. Go to Properties for the project.
  2. In the build screen, change the Configuration type to Makefile.
  3. Change Makefile in the project root folder, and delete old generated build files.

Subversion stuff

Guide for setting up a Subversion repo. in the IMADA system: SVN guide.
A SVN plugin exists in Netbenas in the standard installation.

Installing Subclipse in Eclipse 3.5

Note that the standard Eclipse installation on some of the computers at IMADA is a (too) old version (3.2). This can be "fixed" by downloading a newer version at the Eclipse download page (the C/C++ version).
  1. In Eclipse, go to Help, Install New Software
  2. Press Add and use "Subclipse" as name and "http://subclipse.tigris.org/update_1.6.x" as location.
  3. Press OK, and mark Subclipse in the list. Press Next a few times and accept the license aggreement.