Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i want to allocate a large buffer, but the 32 bit OS limits it to less than 2GB, will migrating to 64 bit platform solve the problem, since malloc function has argument of type size_t which is 64 bit in 64bit platform?? If so than what is the maximum size we can allocate??
thanx
Posted

1 solution

Depends on how much memory you want to allocate and the implementation of malloc. I have no idea what the limit is with Visual C++ but there's an architectural limit on Windows of 8Tb per process (about 2000 times what you're used to with 32 bit windows).

Cheers,

Ash

PS: Most 64 bit versions of windows can only have ~128Gb of physical RAM so you're probably going to hit that limit first.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900