64-bit Linux OS and 32-bit application
Hi,
If we have 64-bit Linux OS and 32-bit application running on a board which has 30 GB RAM, it is for sure that the OS can access the whole 30 GB RAM. But, the question is can the 32-bit application access the whole 30 GB RAM or only 4 GB of RAM? I guess only 4 GB. Could any one of you have a quick answer and the theory behind the answer? Thanks & Regards, Ramesh. |
You guessed it.
As far as the 32-bit application is concerned, it's running on a 32-bit machine with a 32-bit address space. End of story :) |
Quote:
I wasn't sure what your question meant. For example, the 32 bit application is not limited to running in the first 4GB of physical memory. Each 32 bit process in a 64 bit OS is limited to 4GB of virtual address space. You could run the same 32 bit program simultaneously in 8 different processes and use up to a total of 32GB of virtual memory. But any one of them is limited to 4GB. There are tricks with remapping shared memory segments by which some (but very few) 32 bit programs make effective use of more than 4GB physical memory to operate on more than 4GB of in-memory data in a single process. But generally if you want to operate on more than 4GB of data in memory, you want to compile for 64 bit mode. Quote:
|
All times are GMT -5. The time now is 04:06 AM. |