Object Files

This unit imports and processes object files and generates intermediate code for OMF records.

Importing Object Files

Turbo Pascal can import and link object files created with any other compiler that can create Relocatable Object Module Format file.
 

Importing COMENT Object File Record

If local debug information is in enabled and comment class equals to ccSourceFile ($E8) this procedure processes object file COMENT record ($88).
 

Importing MODEND Object File Record

This procedure processes MODEND object file record ($8A) and updates statement code size symbol table.
 

Importing EXTDEF Object File Record

This procedure processes EXTDEF object file record ($8C) and adds record to ExtrnDefinitions array for each EXTRN definition.
 

Importing PUBDEF Object File Record

This procedure processes PUBDEF object file record ($90) and sets data in ProceduresRecord to the procedure defined in the object file.
 

Importing LINNUM Object File Record

This procedure processes LINNUM object file record ($94) and stores statement code sizes to the symbol table.
 

Importing SEGDEF Object File Record

This procedure processes SEGDEF record ($98), finds appropriate Turbo Pascal segment and creates space in the symbol table for that segment.
 

Importing FIXUPP Object File Record

This procedure processes FIXUPP record ($9C) and creates reference record in the symbol table.
 

Importing LEDATA and LIDATA Object File Records

This procedure processes LEDATA object file record ($A0) and copies data from object file to symbol table.
 


 
 
© 2017 Turbo Pascal | Privacy Policy