Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.programmer > #868

Re: Borlands TLINK and minimizing an EXEs memory usage

From Ross Ridge <rridge@csclub.uwaterloo.ca>
Newsgroups comp.os.msdos.programmer
Subject Re: Borlands TLINK and minimizing an EXEs memory usage
Date 2013-04-04 16:40 -0400
Organization University of Waterloo
Message-ID <kjkofd$c11$1@rumours.uwaterloo.ca> (permalink)
References <515c94db$0$6871$e4fe514c@news2.news.xs4all.nl> <c1.2b8.3ZhPDW$04q@NOVOSAD3.EMBARQ.COM> <515da12f$0$6978$e4fe514c@news2.news.xs4all.nl>

Show all headers | View raw


R.Wieser <address@not.available> wrote:
>Well, for two simple reasons actually: 1) it bugged me that I could not use
>the allocation call. 2) to me its untidy housekeeping to just let programs
>do whatever they please.

This is MS-DOS.  Programs can do whatever they please.

The correct way to handle this is let the EXE allocate all of memory
at startup and then resize this allocation to what you actually need.
This way you can use an "end" label in your code to mark exactly where
your program's initial allocation really ends.  Otherwise you're just
putting some value in to the EXE header that you're going to need to
adjust everytime you make a change to your program.

					Ross Ridge

-- 
 l/  //	  Ross Ridge -- The Great HTMU
[oo][oo]  rridge@csclub.uwaterloo.ca
-()-/()/  http://www.csclub.uwaterloo.ca/~rridge/ 
 db  //	  

Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Borlands TLINK and minimizing an EXEs memory usage "R.Wieser" <address@not.available> - 2013-04-03 22:46 +0200
  Re: Borlands TLINK and minimizing an EXEs memory usage Bogus@Embarq.com (Steve) - 2013-04-04 12:51 +0000
    Re: Borlands TLINK and minimizing an EXEs memory usage "R.Wieser" <address@not.available> - 2013-04-04 17:51 +0200
      Re: Borlands TLINK and minimizing an EXEs memory usage Ross Ridge <rridge@csclub.uwaterloo.ca> - 2013-04-04 16:40 -0400
        Re: Borlands TLINK and minimizing an EXEs memory usage "R.Wieser" <address@not.available> - 2013-04-05 00:43 +0200
          Re: Borlands TLINK and minimizing an EXEs memory usage Ross Ridge <rridge@csclub.uwaterloo.ca> - 2013-04-04 19:51 -0400
            Re: Borlands TLINK and minimizing an EXEs memory usage "R.Wieser" <address@not.available> - 2013-04-05 11:50 +0200
              Re: Borlands TLINK and minimizing an EXEs memory usage Bogus@Embarq.com (Steve) - 2013-04-05 12:21 +0000
                Re: Borlands TLINK and minimizing an EXEs memory usage "R.Wieser" <address@not.available> - 2013-04-05 16:02 +0200
              Re: Borlands TLINK and minimizing an EXEs memory usage Ross Ridge <rridge@csclub.uwaterloo.ca> - 2013-04-05 20:56 -0400
                Re: Borlands TLINK and minimizing an EXEs memory usage "R.Wieser" <address@not.available> - 2013-04-06 12:37 +0200
                Re: Borlands TLINK and minimizing an EXEs memory usage JJ <jaejunks@nah.meh> - 2013-04-06 21:10 +0700
                Re: Borlands TLINK and minimizing an EXEs memory usage "R.Wieser" <address@not.available> - 2013-04-06 19:38 +0200
                Re: Borlands TLINK and minimizing an EXEs memory usage Ross Ridge <rridge@csclub.uwaterloo.ca> - 2013-04-07 02:34 -0400
                Re: Borlands TLINK and minimizing an EXEs memory usage "R.Wieser" <address@not.available> - 2013-04-07 19:55 +0200
                Re: Borlands TLINK and minimizing an EXEs memory usage Ross Ridge <rridge@csclub.uwaterloo.ca> - 2013-04-07 16:07 -0400
                Re: Borlands TLINK and minimizing an EXEs memory usage "R.Wieser" <address@not.available> - 2013-04-08 00:32 +0200
                Re: Borlands TLINK and minimizing an EXEs memory usage Bogus@Embarq.com (Steve) - 2013-04-08 12:52 +0000
                Re: Borlands TLINK and minimizing an EXEs memory usage rugxulo@gmail.com - 2013-04-08 14:15 -0700
  Re: Borlands TLINK and minimizing an EXEs memory usage "Rod Pemberton" <do_not_have@notemailnotq.cpm> - 2013-04-07 20:20 -0400
    Re: Borlands TLINK and minimizing an EXEs memory usage "R.Wieser" <address@not.available> - 2013-04-08 12:48 +0200
      Re: Borlands TLINK and minimizing an EXEs memory usage JJ <jaejunks@nah.meh> - 2013-04-09 09:12 +0700
        Re: Borlands TLINK and minimizing an EXEs memory usage "R.Wieser" <address@not.available> - 2013-04-09 12:47 +0200
    Re: Borlands TLINK and minimizing an EXEs memory usage Ross Ridge <rridge@csclub.uwaterloo.ca> - 2013-04-08 20:17 -0400
      Re: Borlands TLINK and minimizing an EXEs memory usage "R.Wieser" <address@not.available> - 2013-04-09 12:28 +0200

csiph-web