home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / LATTIC_1.LZH / PRELINK.TXT < prev    next >
Text File  |  1990-09-22  |  1KB  |  31 lines

  1. Some notes on pre-linking
  2. =========================
  3.  
  4. These are notes for advanced users who wish to exploit the pre-linkage
  5. features available from CLink when driven from a command line or WITH
  6. file.
  7.  
  8. Pre-linking is similar to a normal link, however instead of producing
  9. the five load sections: text, far data, near data, near bss and far
  10. bss, it coalesces only identically named and typed sections. If a
  11. section is unnamed then it is merged with the first named section of
  12. the same type. For each section of a given type the name, if the first
  13. section created is unnamed, is that of the first named section merged
  14. subsequently. Note that the special name __MERGED is considered a
  15. 'type' and hence only sections named __MERGED will be coalesced with
  16. __MERGED sections.
  17.  
  18. With the 5.06 release of the compiler, section names are by default
  19. omitted apart from the __MERGED section where the only method of
  20. identifying this 'type' is via its name. 
  21.  
  22. Note that use of the -s compiler option allows careful ordering of the
  23. sections so that you can minimise ALVs, or produce other clever
  24. effects. One program which uses these features extensively is the
  25. HiSoft Screen Editor.
  26.  
  27. When pre-linking ALVs are applied according to the normal rules, i.e 
  28. ALVs will be generated for out of range in section branches, and *all*
  29. cross-section references, note the definition of cross-section
  30. according to rules above.
  31.