Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!edcastle!hwcs!neil From: neil@cs.hw.ac.uk (Neil Forsyth) Newsgroups: comp.sys.atari.st.tech Subject: Re: How store extra data at the end of an executable? Message-ID: <2741@odin.cs.hw.ac.uk> Date: 17 Apr 91 08:07:19 GMT References: <5796@mcrware.UUCP> <2904@atari.UUCP> Sender: news@cs.hw.ac.uk Reply-To: neil@cs.hw.ac.uk (Neil Forsyth) Organization: Computer Science, Heriot-Watt U., Scotland Lines: 32 In article <2904@atari.UUCP> apratt@atari.UUCP (Allan Pratt) writes: >I reiterate: you should not try to "append a picture file to the end of >[your] executable file" but rather "arrange for a picture file to >be included in your program file." This you can do, in the worst case, >by turning the picture file into an assembly (or C!) source file, >assembling (or compiling) it, and linking with the resulting .o file. > >Example using my DB (it doesn't matter what compiler you ultimately use): > (DB example deleted) I use Allan's linker (ALN) instead: aln -p -i picture.neo _titlpic -o titlepic.o This produces an object file, titlepic.o, that contains the NEOchrome picture at label _titlepic which can then be accessed as a structure. I should add of course that the picture will not be on a 256 byte boundary and so you can't just point the hardware at it (unless you have an STE or a TT of course). >============================================ >Opinions expressed above do not necessarily -- Allan Pratt, Atari Corp. >reflect those of Atari Corp. or anyone else. ...ames!atari!apratt +----------------------------------------------------------------------------+ ! DISCLAIMER:Unless otherwise stated, the above comments are entirely my own ! ! ! ! Neil Forsyth JANET: neil@uk.ac.hw.cs ! ! Dept. of Computer Science ARPA: neil@cs.hw.ac.uk ! ! Heriot-Watt University UUCP: ..!ukc!cs.hw.ac.uk!neil ! ! Edinburgh, Scotland, UK "That was never 5 minutes!" ! +----------------------------------------------------------------------------+