Article View: comp.os.msdos.programmer
Article #3816Re: MSC 7.00. Please help me with Virtual memory.
From: Pradeep K Tapadiya
Date: Fri, 16 Oct 1992 13:50
Date: Fri, 16 Oct 1992 13:50
31 lines
1651 bytes
1651 bytes
>et1@cec1.wustl.edu (Evangelos Tozakoglou) writes: > > >Hi there, > I got my new MSC 7.00 compiler just a few days ago, thaks to someone >who insisted that I could use Extneded/Expanded memory for the BIG >matrices I am using in my programms. >Truth was that what I can use is Virtual memory and unfortunately the >documentation from Microsoft although huge, isn't enough for me. >So I am looking for a book or an ftp site where I can find examples >on how-to-use-extended-memory-for-your-matrices. >I know there are examples in the docs, but I need to make 2-D matrices and >obviously I am doing something wrong. > You can use expanded memory for storing data (in your case 2-D matrices) as long as the size of each matrix is not more than 64K. Its been quite a while since I have used them. The basic steps are 1. allocate virtual memory ( _vmalloc) 2. lock it before u use it. 3. unlock it after u use it. 4. _vfree it when you are through with it. I don't know how familiar you are with Microsoft Advisor. This on-line help facility has some basic examples which you can experiment with. Try "qh _vmalloc" from command line. Hope this helps. Pradeep tpradeep@cs.tamu.edu
Technical Details
Message-ID:
<1992Oct16.135055.24954@tamsun.tamu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!cs.utexas.edu!tamsun.tamu.edu!tpradeepShow Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!cs.utexas.edu!tamsun.tamu.edu!tpradeep From: tpradeep@cs.tamu.edu (Pradeep K Tapadiya) Subject: Re: MSC 7.00. Please help me with Virtual memory. Message-ID: <1992Oct16.135055.24954@tamsun.tamu.edu> Sender: news@tamsun.tamu.edu (Read News) Organization: Computer Science Department, Texas A&M University Date: Fri, 16 Oct 1992 13:50:55 GMT Lines: 31