Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!helios.ee.lbl.gov!beva.bev.lbl.gov!wbrown From: wbrown@beva.bev.lbl.gov (Bill Brown) Newsgroups: comp.realtime Subject: Re: vxWorks memory partitions Keywords: free forget debug_cycle Message-ID: <2603@helios.ee.lbl.gov> Date: 11 May 89 14:15:48 GMT References: <3213@ncar.ucar.edu> Sender: usenet@helios.ee.lbl.gov Reply-To: wlbrown@lbl.gov (Bill Brown) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 56 In article <3213@ncar.ucar.edu> cmiller@hao.ucar.edu (Charlie Miller) writes: > >The apparent problem: In the debug cycle of modify, load, try, modify, reload, >vxWorks eventually uses up all available memory by not deallocating partitions >allocated to each program loaded even though the new program has the same >name. It just allocates new partitions until no more are available then >refuses to allow loads. The only way I have found to get around this is >to manually do free(program_name) from the shell or to reset. There must be >a way to automate this process. > >Any suggestions?? > >Also, I would like to hear from other vxWorks users out there. What are >your applications, etc. > >Charlie Miller >cmiller@hao.ucar.edu An interesting idea, this. I've wanted to do something like this (similar to the 'forget' word in FORTH) but never thought of trying 'free'. I usually have more than one file that needs to be loaded and I use a script like this: ld cd "host:~me/vxworks/current_dir" in invoke the script by