ccg: dynamic code generation for
This document contains brief notes on ``
ccg'', a combination of preprocessor and ``runtime assembler'' for
It allows extremely efficient dynamic code generation for PowerPC, Sparc and Pentium to be embedded in arbitrary
Dynamically generated code is specified using the standard assembler syntax of the target platform, with extensions to allow
C expressions to appear in operands.
The program can therefore ``specialize'' all aspects of the generated code at runtime: literal operands, register selection, jump/branch destinations, elements of complex addressing modes, and so on.
The system is written entirely in ANSI
C, and requires no compiler-specific extensions (such as inline
asm statements or the various assembler-related extensions implemented by
This document is also available in PostScript and PDF.
Version 1.0alpha is now available for download:
(gzipped tar archive).
Last modification on: Sun May 01 2004 - 22:46:07