Progress
Version 9
Product Update Bulletin
R-code Structure
R-code is divided into multiple segments of varying length. Each r-code file contains an object header and segment location table followed by the actual r-code segments. The object header is a fixed-length descriptor that identifies the file as an r-code file and contains information about the version and size of the r-code file. The segment location table is a variable-length descriptor that contains the size and location of each r-code segment in the file. The maximum size for most segment types is 62K.
Table B–1 describes and lists the types, maximum size, and maximum number of segments in an r-code file.
Table B–1: R-code Segments SegmentType Max.Size Max.Number Description Action code 62K 4 for the main procedure,
1 per internal procedure Holds the actual executable code in the form of action cells. Action cells drive the Progress interpreter and contain the executable code for 4GL verbs. There are between one and four action code segments for the main procedure, and one separate action code segment for each internal procedure.NOTE: Code generated with multiple main action code segments can be run only with Progress Version 9.1C or later. Expression code 62K 4 Holds the executable expressions in Reverse Polish Notation (RPN) for the main procedure, all internal procedures, and all trigger blocks. An r-code file can have up to 248K of executable expressions. Text 62K 1 per language Holds all literal character strings for the r-code file. There is one text segment for the default language and one for each language specified in the COMPILE statement. Duplicate literals are removed. Only one text segment is loaded into memory at run time. Initial value 62K 1 Contains information required to initialize an r-code file for execution, including database and table references, variable definitions, TEMP–TABLE and WORK–TABLE definitions, a list of defined frames, time stamps, and CRCs. There is one initial value segment per r-code file. Frame 32K 1 per frame Contains layout information for a frame, including frame fields, attributes, and all RPN expression code from the frame phrase. There is one frame segment for each named and unnamed frame in the r-code file. Each frame segment has a 32K limit. Debugger 62K 1 Used by the Application Debugger to maintain the debugger context for the procedure. There is one debugger segment per r-code file. This segment is loaded into memory on demand only when the Debugger is active. For information about the Debugger, see the Progress Debugger Guide .
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |