| OCR Text |
Show CHAPTER 4 DYNASCOPE 4.1 Introduction The Dynascope programming environment implements introspection in software. It provides a framework and building blocks for easy construction of sophisticated directors. Directors are regular programs that perform the introspection of executors through Dynascope primitives. Executors are directed from "outside" . The source code of executors requires no changes in order to be subjected to introspection. 4.2 Description Dynascope supports the introspection of regular C programs. This section provides a short description of Dynascope. A C program, representing the executor, is compiled to the code for a hypothetical processor, hypothetical code, or to the code for the host processor, host code (see Figure 4.1). The hypothetical processor is a generic RISC type processor with 32 32-bit registers and a simple load/store architecture [31]. The host processor is a computer that runs Dynascope. The compiled executor is executed under the guidance of an interpreter. Hypothetical parts of code are interpreted by the interpreter. The host code is executed directly by the host processor. The interpreter provides a framework for introspection (see Figure 4.2). This framework includes the communication with the director and the maintenance of internal tables. The director, a regular C program separated from the executor, |