Top Up Prev Next Bottom Contents Index Search

Chapter 18. CGC Domain


Authors: Soonhoi Ha
Other Contributors: Mudit Goel
In this chapter, we will explain the current implementation of C code generation domain. The source code can be found $PTOLEMY/src/domains/cgc/kernel directory. We follow the general framework for code generation defined in CG kernel directory.

In the CGC domain, the resource we have is the name space. We have to avoid name conflicts by guaranteeing unique names for different variables. The most complicated task is to determine the dimension, or buffer size, of each variable, and the method how to access them; static buffering, linear indexing, or modulo addressing.

We use the CGC domain to test new functionalities in code generation: buffer embedding for example. We have tested some simple demos to verify the design.



Top Up Prev Next Bottom Contents Index Search

Copyright © 1990-1997, University of California. All rights reserved.