How To Link Programs

How To Link Programs - How To Link Programs. Part of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
How To Link Programs. .. Part of systemic decomposition usually involves dividing a program into separate files. Smaller files are easier to maintain and support Object Oriented Programming (OOP) by "hiding" or encapsulating data. The problem of coming up with unique label names is mitigated. The Linker accepts the objects from many files, libraries and programs, and outputs an executable program. The compile/assembly/link process is controlled by a make script. Symbols and labels are made known to other files with the .def assembler directive. For example: ;---------------------------------------------------------------------------- -- ; external references ; .def initRand16 ; init random # generator .def rand16 ; get 16-bit random # .def setRandSeed ; set random # seed .def getRandSeed ; get current random # seed ;---------------------------------------------------------------------------- -- .text ; Program Section ;----------------------------------------------------------------------------
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

How To Link Programs - How To Link Programs. Part of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online