Home

Awesome

CrossPascal

Abstract

CrossPascal aims to be a Delphi 7 compatible cross-platform source-to-source compiler (together with the new unicode string types from XE3 but where ansistring is still the default string type for to be still Delphi 7 compatible) which generates intermediate C code. Since C compilers are available on nearly every platform, this introduces a large variety of targets (native 32 bit targets for as minimum) for crosspascal to work with.

CrossPascal is not a simple converter. It features a full parser building an abstract syntax tree, from which C code is generated. All unique language features compared to C (such as nested functions, Delphi RTTI, and much more) are translated accordingly and reimplemented in C code.

Current Status

Last update: Juny 11th, 2013

Here is a little overview of the current status, our main focus is the actual code generation right now. The parser itself was originally written by Benjamin Rosseaux in 2005-2006 and was used as a starting point for this project.

TaskDone
Parser95%
General Code Generation65%
Nested Functions100%
Unit Handling100%
Strings80%
Objects (Turbo Pascal oldstyle)100%
Classes90%
Interfaces10%
Variants0%
Dynamic arrays75%
RTTI95%
Exception Handling80%
Codepage Handling0%
RTL0%