Mail Archives: djgpp/1998/02/12/02:00:21
> * 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 -