X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f NNTP-Posting-Date: Fri, 19 Sep 2008 22:01:35 -0500 From: "Charles Sandmann" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Memory allocation Date: Fri, 19 Sep 2008 22:01:31 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-RFC2646: Format=Flowed; Original Message-ID: Lines: 18 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 64.91.192.48 X-Trace: sv3-PKYKH74mRK9uHZSL7PUKg8Wr0bZM4EXxgo10cIlNmwENwGcZ+XKHkDsRkP88eBXUqH/ZBxFc+ItfIoN!vvKmNDyzRLhLHmMl0uT1EgpPL4CHqUQFxHpfGoTtCQH1pd9WezlV9M31REU+rJSnrN5H4HkDXqTJ!Fg63AsjEn5qizAGRPO+1LXwEW1Epq6Q= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > Is there's a chance that a malloc'ed memory space will intersect with > a memory mapped device? They should not overlap. Mapped memory (such as video frame buffers, etc) are managed using different APIs and memory space than malloc()ed memory. > Coz right now I am using a selector for accessing a memory mapped I/O > and had malloc'ed around > 98 MB of memory divided into 256 kB chunks. There is between 1GB and 4GB of address space available for DJGPP applications (depending on OS and DPMI provider) - which is usually more than enough for both. In rare cases with large mapped memory and large memory requirements (>250MB) there can be some conflicts, but these are rare and usually would just result in a malloc() failure.