This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Call for testers: libiberty/physmem.c


Krzysztof Parzyszek wrote:
Here is a sample code that works on FreeBSD-STABLE.  The values returned
by sysctl are said to be in bytes and so I don't know what happens when
you have >= 2G of available memory.

Just a FYI, this works on darwin as well.


physmem = 536870912 bytes
usermem = 485621760 bytes
pagesize = 4096 bytes

Andreas



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]