1 / 8

Implementing Examples

Implementing Examples. By Prof. Nousheen Taj Asst. Professor, Dept. of CSE . MS DOS Linker. Most MS-DOS compilers and assemblers produce object modules. .OBJ files contain a binary image of the translated instructions and data program. MS-DOS LINK is a linkage editor .

harper
Télécharger la présentation

Implementing Examples

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Implementing Examples By Prof. Nousheen Taj Asst. Professor, Dept. of CSE

  2. MS DOS Linker • Most MS-DOS compilers and assemblers produce object modules. • .OBJ files contain a binary image of the translated instructions and data program. • MS-DOS LINK is a linkage editor . • Produces .EXE files.

  3. MS DOS Linker • object file (.OBJ) • generated by assembler (or compiler) • format THEADR name of this object module PUBDEF external symbols defined in this module EXTDEF external symbols used here TYPDEF data types for pubdef and extdef SEGDEF describes segments in this module GRPDEF segment grouping LNAMES name list indexed by segdef and grpdef LEDATA binary image of code LIDATA repeated data FIXUPP modification record MODEND end

  4. MS DOS Linker (cont’d) • LINK • pass 1: • allocates segments defined in SEGDEF • resolve external symbols • pass 2: • prepare memory image • if needed, disk space is also used • expand LIDATA • relocations within segment • write .EXE file

  5. SunOS linkers for SPARC • Linkers: link-editor and run-timelinker • Object files: • A relocatable object module, suitable for further link-editing. • A static executable, with all symbolic references bound and ready to run. • A dynamic executable, in which some symbolic references may need to be bound at run time. • A shared object, which provides services that can be bound at run time to one ore more dynamic executables.

  6. SunOS linkers for • Object modules contain one or more sections. • Sections has a set of attributes such as executable and writeable. • Sections that have the same attributes are concatenated to form new sections with in the output file. • The linker normally generates a new symbol table and new set of relocation instructions, with in output file, to represent the symbols that must be bound at run time. • Uses 11 different relocation codes that reflects instruction formats and addressing modes too. • Symbolic references from the input files that do not have matching definitions are processed by referring to archives and shared objects .

  7. Cray MPP Linker for Cray T3E • T3E system contains a large number of processing elements. • Each PE can access the memory of all other Pes. • An application program is allocated to a partition that consists of several Pes. • The work of the program is divided between the PEs in the partition. • One common way to accomplish this is to distribute the elements of an array among the Pes.

  8. Problems… • There may be live objects that are instances of a class we want to reload. • The application may be executing a method that belongs to a class we want to reload. • By organizing software components in separate class loaders, we can solve these problems.

More Related