[R] R_alloc vs. malloc

From: Søren Højsgaard <Soren.Hojsgaard_at_agrsci.dk>
Date: Fri, 11 Apr 2008 12:49:09 +0200


Dear list
I have two (trivial) memory-questions related to a call with .C:  

If I allocate memory with R_alloc in a C-program (called with .C), will that memory "be taken from" the "available memory pool" (of a maximum of 4gb?) which R can allocate? (This is the impression I get from "Writing R extensions".)  

If instead I use malloc; will that memory then be taken from the available pool for R? Or does that happen without having an impact on R's "available memory pool"?  

Regards
Søren



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 11 Apr 2008 - 10:57:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 Apr 2008 - 12:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive