Topic: Getting rid of Zero data


Author: Samuel Marshall <Samuel.Marshall@durham.ac.uk>
Date: 1995/05/05
Raw View
In article <D7DJI1.41w@utu.fi>, janmat@utu.fi (Jani Mattsson) writes:
|> > Would you happen to know how to write a 'postproccessor' which will
|> >eliminate any unessacary data taking up space in an EXE / COM file??
|>
|>  If you mean you want to compress the exe, get pklite or propack
|>  or a similar utility..

or if you can't be bothered, just choosing "exepack" option on the linker will do
a simple RLE encoding that gets rid of large zero blocks (I think).

Correct me if wrong, I often am. :)

--
Sam

[] http://www.dur.ac.uk/~d405ua <[ Web pagE ]> *NEW* Sysex Manager ! []
[] For Software Forge program information and downloads [] Including []
[] NETRIS 1.1 best Tetris game <[ For Win 3.1 ]>  Sysex Manager 1.0S []





Author: jheikki@cs.joensuu.fi (.oOo.J M A G I C.oOo.)
Date: 1995/04/21
Raw View
Nitro (71603.666@CompuServe.COM) wrote:

:  Would you happen to know how to write a 'postproccessor' which will
: eliminate any unessacary data taking up space in an EXE / COM file?? Could be in BAS, C++,C, ASM... Or at least tell me what I need to do,
: to execute such an operation on a file with out tarnishing the file.

If you code in assembler, define your datas like this:

buffer db 64000 dup (?)

--
 .  Jarno Heikkinen       .  email: jheikki@cs.joensuu.fi
 :  Karjamaentie 10 D 28  :  WWW:   http://cs.joensuu.fi/~jheikki
 :  80230  JOENSUU        :  phone: +358-40-5463238
 :  FINLAND               :  aka    Jmagic/Complex





Author: janmat@utu.fi (Jani Mattsson)
Date: 1995/04/21
Raw View
> Would you happen to know how to write a 'postproccessor' which will
>eliminate any unessacary data taking up space in an EXE / COM file??

 What do you mean by the unnecessary data? If you code in assem-
 bler, there shouldn't be anything in the exe/com you haven't
 yourself included there. If you code in some higher level
 language, there'll always be some libraries that need to be
 linked to the exe in order for it to run.

 If you mean you want to optimize the exe header of unnecessary
 data your linker might have put there, get UNP and execute

  unp l foobar.exe -r -h

 which will remove everything extra from the header (-h) and
 remove everything after the actual exe (-r). If your exe has
 overlays, don't use the -r option since the overlays will
 be erased.

 If you mean you want to compress the exe, get pklite or propack
 or a similar utility..

saint/emf






Author: Nitro <71603.666@CompuServe.COM>
Date: 1995/04/19
Raw View
All,


 Would you happen to know how to write a 'postproccessor' which will
eliminate any unessacary data taking up space in an EXE / COM file?? Could be in BAS, C++,C, ASM... Or at least tell me what I need to do,
to execute such an operation on a file with out tarnishing the file.


        Nitro