This thesis is about a project called Py2C. The idea behind the thesisis making a code generator from Python source code to C source code.The C source code should be able to run on a Compaq Ipaq which has Linux as the operating system. Python is a general purpose scripting language,while C is compiled. The Py2C generator is built up in a similarstructure as a compiler, but is different in some ways. This documentis about how the code generator is built up, and how it works. It alsocontains information on further development.