BIND Help (bind.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Internal Layout of a Bound Program
                                             Up Contents Index Back
─────Internal Layout of a Bound Program─────────────────────────────────────
 
     Bound files have two headers: the first header has a DOS format;
     the second header has an OS/2 format. When the executable file is
     run under OS/2, OS/2 ignores the first header and uses the OS/2
     format. When the executable file is run under DOS, the DOS header
     is used to load the file. The figure below shows the arrangement
     of the headers:
 
         ┌────────────────────────────┐
         │   DOS header               ├──┐
         ├────────────────────────────┤  │
         │   DOS Family-API library   │  │
         ├────────────────────────────┤  │
         │   Stub loader              │  │
         ├────────────────────────────┤  │
         │   OS/2 Header              │─┘
         ├────────────────────────────┤
         │   User program             │
         └────────────────────────────┘
                                    -♦-