bit-memory | A hobby library for c memory management
kandi X-RAY | bit-memory Summary
kandi X-RAY | bit-memory Summary
A hobby library for c++ memory management
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of bit-memory
bit-memory Key Features
bit-memory Examples and Code Snippets
Community Discussions
Trending Discussions on bit-memory
QUESTION
I was reading up on the difference between 32-bit and 64-bit systems, and came across this blog in the process: https://www.zdnet.com/article/clearing-up-the-3264-bit-memory-limit-confusion/
Now I'm confused because in this blog they provide a note as follows:
Note: Wondering how we arrive at that 4GB limit? Here's the math for 32-bit systems:
2^32 = 4,294,967,296 bytes 4,294,967,296 / (1,024 x 1,024) = 4,096 MB = 4GB
It's different for 64-bit:
2^64 = 18,446,744,073,709,551,616 18,446,744,073,709,551,616 / (1,024 x 1,024) = 16EB (exabytes)
They state that whether a program is 32 bit or 64 bit changes the memory limit it can use.
What I don't understand is, how the bits change into bytes? If you work out 2 bits to the power of 32, surely the result is 4,294,967,296 bits and not bytes? And if this were so, then the memory limit on a 32-bit system would be 4 GigaBits and not 4 GigaBytes?
Can someone explain how this works out? Maybe I'm missing something?
...ANSWER
Answered 2018-Jul-06 at 10:15each separately-addressable memory location is a byte. Memory is not bit-addressable, only in byte chunks or larger. That's why setting a single bit in a bitmap requires a read-modify-write of the containing byte or word.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bit-memory
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page