Article View: comp.os.msdos.programmer
Article #219Re: changes to exe (binary) file --- THANKS ALL!
From: jim
Date: Tue, 04 Aug 1992 13:10
Date: Tue, 04 Aug 1992 13:10
37 lines
2422 bytes
2422 bytes
In article <BsFG1G.EG8@fc.sde.hp.com> Gary Fritz <fritz@hpfcbig.sde.hp.com> writes:
>jim@n5ial.chi.il.us (Jim Graham) writes:
>: I finally ended up with a simple process where the filesize is determined,
>: a buffer large enough to hold the file is malloc'ed (in smaller chunks to
>: avoid one block of data > 64k...geez, you'd think the people writing C
>: compilers could handle that in the background and make a more correctly
>: behaved C compiler).
>
>Don't blame C, blame MSDOS and the underlying Intel hardware.
like I said, ``you'd think [they] could handle that in the background''
^^^^^^^^^^^^^^^^^
I don't really care about dos's limitations (well, ok, I have to care....
but I don't want to have to care). my point is, you'd think that a
commercial C compiler like tc++ would SILENTLY organize things so that
you could (as far as you're concerned, anyways) malloc a data structure
larger than 64k.
of course, there would be some inherent dangers involved (just like there
are with optimizing compilers), and this would need to be controlled by
a command line switch just like -O for optimizers.
oh well, then again, they forgot to include all of the standard C library
functions, so why should they do something like the above? :-(
anyways, gotta run.
--jim
\input std_disclaimer % 73 DE N5IAL (/9)
------------------------------------------------------------------------------
"[...] the plural of `mongoose' ought to be `polygoose'." [Jargon file 2.9.10]
INTERNET: jim@n5ial.chi.il.us | grahj@gagme.chi.il.us | j.graham@ieee.org
UUCP: gagme!n5ial!jim@clout.chi.il.us
AMATEUR RADIO: n5ial@n9hsi (Chicago.IL.US.Earth)
------------------------------------------------------------------------------
Technical Details
Message-ID:
<1992Aug4.131054.232@hou.amoco.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!noc.msc.net!uc.msc.edu!apctrc!wsc!jimReferences:
<1992Aug3.124703.15770@hou.amoco.com> <BsFG1G.EG8@fc.sde.hp.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!noc.msc.net!uc.msc.edu!apctrc!wsc!jim From: jim@n5ial.chi.il.us Newsgroups: comp.os.msdos.programmer Subject: Re: changes to exe (binary) file --- THANKS ALL! Message-ID: <1992Aug4.131054.232@hou.amoco.com> Date: 4 Aug 92 13:10:54 GMT References: <1992Aug3.124703.15770@hou.amoco.com> <BsFG1G.EG8@fc.sde.hp.com> Sender: news@hou.amoco.com Reply-To: jim@n5ial.chi.il.us Organization: me? have you seen my desk? : -) Lines: 37 Originator: jim@eddie