From the abstract: "In this thesis, a small spreadsheet calculation engine written in C#, is augmented with runtime code generation (RTCG), I/O methods, a GUI and scripts. The resulting spreadsheet system is named TinyCalc. The runtime code generator compile formula expressions to IL assembler in .NET code while inlining subexpressions and deducing types of values to avoid creating typechecks in the resulting code. Moreover, it tries to avoid creating temporary objects for intermediate values and, finally, it tries to let the basic objects of calculation in .NET, double and string stay directly on the runtime evaluation stack between operations. The speedup of doing so is measured using simple benchmarks and it is concluded that TinyCalc, while simple, is able to outperform Gnumeric and Open Office Calc without using RTCG. With RTCG, TinyCalc approaches and sometimes perform on par with Excel, when not counting the overhead of doing RTCG. It is also concluded that TinyCalc needs to rethink the way it does Matrix operations. The thesis ends with a section on the perspectives for TinyCalc and RTCG."