delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/12/02:00:21

From: pneyz <pneyz AT bethany DOT edu>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> * 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/
*/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019