CorePy is organized as a collection of packages, some shared and some platform specific. The platform sub-hierarchies all live in the arch package and follow the same basic structure:
corepy/
arch/
[ppc,vmx,spu,x86,x86_64]/
isa/
lib/
platform/
types/
lib/
printer/
extarray/
spre/
examples/
doc/
The isa package contains all the instructions for a particular ISA. The platform package contains the native code and Python code necessary to execute instruction streams on a given operating system. When imported, the platform package automatically selects the appropriate platform support code.
The types package contains support for variables and expressions on supported platforms.
The lib package contains additional libraries of synthetic components. Platforms with branch instructions will have an iterators module here. Most platforms also include a util module with other common operations.
In addition to the files in the examples directory, almost every module in CorePy contains an extensive set of unit tests and examples at the end of each file. Feel free to explore the modules to learn more about how to use their features.