delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/02/07/09:58:46

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Sat, 7 Feb 2004 09:58:36 -0500
Message-Id: <200402071458.i17EwZtr013586@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <20040207022922.17062.00001693@mb-m03.aol.com> (sterten@aol.com)
Subject: Re: attaching source code to the ececutable
References: <200402061851 DOT i16Ipq6I013270 AT envy DOT delorie DOT com> <20040207022922 DOT 17062 DOT 00001693 AT mb-m03 DOT aol DOT com>
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> no, it's for the potential user or email-friend who has got the .exe
> from you and now wants to see its sourcecode.

So include a command line option to print the includes source.

> I have many programs with text attached and never observed any
> problems.

DJGPP programs?

> I assume that the attached text isn't loaded, when the program is
> executed. DOS/Windows looks for the length of the program in the
> .exe header and then only loads to RAM the number of bytes specified
> there, and ignores the rest.

Right, that's 2048 bytes for all djgpp programs.

> So there can only be problems, if the program opens the .exe files
> itself, (like my sourcecode-printing routine does) e.g. for
> computing a checksum.

It does.  That's how ALL djgpp programs work.  DJGPP programs are
*already* a program with data attached to it.  So, you can't do what
you want with DJGPP.

- Raw text -


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