CompuServe Thread

Executable organization

5 messages in this thread
#69672From: Steve PietrowiczOct 14, 1989 3:35 PM
How are Amiga executables organized? Programs like PowerPacker and PAK append the compressed executables to themselves somehow, and are able to extract/use the data when the program is run. I'd like to know how this is done….any ideas? srp
#69710From: M2S/Phil CampOct 14, 1989 10:10 PM
Check the Bantam AmigaDOS manual, it has the complete description of the load file format.
#69823From: Steve PietrowiczOct 15, 1989 2:49 PM
Ah, great! Thanks! Got a copy of that right here on the bookshelf, and I never thought to look in it. Steve
#69790From: Mike BerroOct 15, 1989 11:53 AM
Steve, Here's a layman's description, since I've never actually programmed for it directly. Executables are organized into "hunks"; code and data. Each hunk has a "header" describing it. Thus some hunks go into CHIP only (a la FixHunk), etc. PowerPacker (I would guess) appends the compressed executable as data hunk, which it then decompresses and "runs". —Mike
#69827From: Steve PietrowiczOct 15, 1989 3:03 PM
Thanks for the explanation. I think I've found a way to do what I want to do. (At least it's been working for me so far!) 🙂 Steve