From: pneyz Newsgroups: comp.os.msdos.djgpp Subject: Re: HELP - How to link Binary Files in a Data File Date: Wed, 11 Feb 1998 20:49:52 -0800 Organization: Smoof Team Lines: 26 Message-ID: <34E27F70.C90926CB@bethany.edu> References: <199802120240 DOT SAA17111 AT adit DOT ap DOT net> NNTP-Posting-Host: scz-ca9-03.ix.netcom.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk > * You may already have a program like this. DJGPP is supposed to include a > `bin2h' utility that does that but it was omitted from the binary > distribution. If you have built the library source it's installed, or if you > extract the bin2h file and compile by hand. Yea, I've used it, but I don't like it as much. Why? It's not as configurable, and I naturally prefer my own creation. Mine supports (among other things): two output formats, optional NULL char appended, full support for stdin and stdout as well as infiles and outfiles, and a few other small things. > * If you have a very large data file, this won't work. GCC has a misfeature > that makes it use extreme amounts of memory and stack when compiling large > initialized arrays, and it can easily run out and crash. Converting your > datafile to assembly does work. I think somebody wrote one, or a little look > at `as' docs and GCC output can show how it works. asm output is already in beta stages, as is pascal (ack!) and basic (ack! * 2). i dunno if i'll finish anything other than asm, though. -- /* pneyz / Smoof Team pneyz AT bethany DOT edu "Fine Malt Coding" http://ns.bethany.edu/pneyz/ */