~BINOBJ.EXE BINOBJ.EXE

BINOBJ32.EXE
 

BINOBJ32 can convert files to OMF obj-files.
OMF-obj files can linked at compile time so no I/O at runtime is needed to
access the data. you could also use resource script files (OS/2,WIN32).

disadvantage of included obj-files: if you have linked many big obj-files
and the executable loader loads the complete executable in memory
at program start an significat memory waste would occur.


Example:

You have designed coloured screen with an program like TheDraw/TheSoft
and with to display it on program exit:

BINOBJ32 EXIT.BIN EXIT.OBJ EXIT_SCREEN EXIT_SCREEN_LENGTH


 program textit;

 uses
   VpSysLow;

 (*$ORGNAME+*)                          (* tell Linker to
                                           accept identifier
                                           without unit prefix    *)

 procedure EXIT_SCREEN;external;        (* include the data file  *)
 procedure EXIT_SCREEN_LENGTH;external;
 (*$L EXIT.OBJ*)

 (*$ORGNAME-*)

 begin

   Move(
     @EXIT_SCREEN^^,                     (* painted source screen *)
     SysTVGetSrcBuf^^,                   (* Video Memory          *)
     meml[ofs(EXIT_SCREEN_LENGTH)]);    (* Length                *)

   SysTVShowBuf(
     0,
     meml[ofs(EXIT_SCREEN_LENGTH)]);    (* Repaint               *)

   ReadLn;                              (* Wait for Key          *)

 end.


