www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/09/06/10:49:29

Via: uk.ac.glasgow.physics.ibm1; Mon, 6 Sep 1993 15:39:18 +0100
Date: Mon, 06 Sep 93 15:31:29 BST
From: Paul Harness (HARNESS at GWIA) <HARNESS AT ibm1 DOT physics DOT glasgow DOT ac DOT uk>
Phone: 041-339 8855 ext 8359
Address: Department of Physics and Astronomy, University of Glasgow, Glasgow,
G12 8QQ, SCOTLAND.
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: malloc question

 
I submitted a question about malloc the other day which I fear has
vanished into thin air! So appologies if it does reappear.
 
Thanks to everyone who answered my last question about graphics problems.
 
I have partially solved this problem now that I've re-read the djgpp
documentation but still have one query. My understanding of memory
allocation under djgpp is that when physical memory runs out, disk
space can be used as virtual memory.
However, malloc seems to allow me to allocated more space than my
memory plus available diskspace. Upon use of the allocated space strange
things happen!! Is it possible to use set things up so that only
physical memory is used? And should malloc return NULL if there isn't
enough space altogether (physical and disk)?
 
Many thanks in advance.
 
Paul

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019