Mail Archives: djgpp/2004/02/08/10:18:55
> >So include a command line option to print the includes source.
>
> are you saying, the source is included in the .exe by default ?
No, I'm saying that *you* can include the sources into the exe.
> Hmm, I could also put the source itself into a string and add it to
> the source before compiling it.
That's what bin2h does.
> to be sure that I understand this correctly :
> The exe-header of the executables always specify a length of 2048 bytes,
> and only 2048 bytes of the program are loaded to RAM and then
Yes.
> eventually later the .exe-file is opened again and additional
> code is loaded ?
Not eventually, immediately. The 2048-byte program, when it runs,
reads the exe and loads the rest of the program into memory and runs
it.
> So, e.g. can I switch directories from within
> a DJGPP program or delete/rename/move/open the executable itself ?
You can do that, yes. But by the time you do that, your program is
already loaded and running.
> >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.
>
> like attaching additional data ?
You can attach more data, but if you just read the EXE header and
expect *your* data to follow it, you will find the DJGPP executable
instead.
- Raw text -