www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/10/13/14:06:17

Date: Fri, 13 Oct 1995 14:07:32 -0300 (GMT-0300)
From: Roberto Alsina <ralsina AT ultra7 DOT unl DOT edu DOT ar>
To: Giovanni Resta <resta AT iei DOT pi DOT cnr DOT it>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Putting 200k of data in an executable ?

I had the same problem some time ago, and solved it this way:
i wrote a program that appended the data file to the exe, and then wrote 
the starting point of the data file at  the end.

So the program would have to read its last 4 bytes and the read from the 
nth-byte until 4 bytes before the end.

In Pascal (that's what i used), it was no problem (the data wouldn't load 
into memory), or if it loaded, at least it wasn't allocated.

I don't think the v2 betax have problems either, but maybe v1 would.

I don't really wanna try it, so....

Anyway 200k isn't that much today.

There is also a program that can turn any file into a .h file... 
declaring it as a char array, but i can't remember the name. In DJGPP 
there wouldn't be any size limits.

I used that one with a 2 Mb file, and worked.

Roberto Alsina
ralsina AT unl DOT edu DOT ar


- Raw text -


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