🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #27978

Re: Pexec cookbook! (w/ Lattice C)

#27978
From: plutchak
Date: Wed, 19 Aug 1987 16:11
23 lines
1763 bytes
In article <816@atari.UUCP> apratt@atari.UUCP (Allan Pratt) writes:
>All GEMDOS programs are started with the largest block of OS memory 
>allocated to them...  The point is that your
>program has probably been allocated ALL of free memory.  In order to
>make memory available for a child process, you have to SHRINK the
>block you own, returning the top part of it to GEMDOS.  The time to
>do this is when you start up.

   Does anybody know exactly how I do this using Lattice C?  The documentation
(for version 3.04) is less than clear on this point, and everything I've
tried hasn't worked.  I have never really *needed* to give the extra 700K
or so of memory back, but the sheer wastefulness of it annoys me (:-), and
someday I may want to use that memory.  I'd appreciate any pointers on the
subject.
   And while I'm asking advice on Lattice C, is there any special startup
module needed to link a program used as a desk accessory, as there
(apparently) is with other C's?
--
  Joel Plutchak

  Arpanet: plutchak@vms.macc.wisc.edu
  Bitnet:  plutchak@WISCMACC
  uucp: Who knows-- it's Eunice; try ...ihnp4!uwvax!uwwircs!plutchak
Technical Details
Message-ID: <1792@uwmacc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!uwvax!rhesus!uwmacc!vms.macc.wisc.edu!plutchak
References: <816@atari.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!uwvax!rhesus!uwmacc!vms.macc.wisc.edu!plutchak
From: plutchak@vms.macc.wisc.edu
Newsgroups: comp.sys.atari.st
Subject: Re: Pexec cookbook! (w/ Lattice C)
Message-ID: <1792@uwmacc.UUCP>
Date: Wed, 19-Aug-87 12:11:44 EDT
Article-I.D.: uwmacc.1792
Posted: Wed Aug 19 12:11:44 1987
Date-Received: Sat, 22-Aug-87 00:56:54 EDT
References: <816@atari.UUCP>
Sender: news@uwmacc.UUCP
Reply-To: plutchak@vms.macc.wisc.edu
Organization: UW-Madison Academic Computer Center
Lines: 23
Keywords: Lattice, Metacomco