now i know this question has been asked quite a few times now but i'm not really wondering how much memory a 32bit processor can address neither theoretically nor practically. just a quick heads up, i come from a civil engineering background so i'm still learning in terms of computer science; and also units of measure are a big deal for me which is actually my question:
now i know you can calculate how much memory a cpu can use by doing 2^32 (or 64) and in this case you get 4.294.967.296 bits. now i know (or i think i know) memory is measured in bytes, so in order to find out how many bytes of memory a cpu can use i divide 4.294.967.296/8 and you get 536.870.912 bytes. then you divide 536.870.912/1024 and you get 524.288 kilobytes. then you divide 524.288/1024 and you get 512 megabytes. then you divide 512/1024 and you get 0,5 gigabytes which is... not great.
now i noticed that if you don't divide by 8 at the beginning you get 4 gigabits; so my question is: is ram measured in bits or bytes. and if it's byes then what is the relationship between cpu address bits and ram capacity?
EDIT: hey, i managed to understand how the units of measure work. basically you have 4.294.967.296 addresses from 0x00000000 to 0xffffffff and each address represents 4 bytes of data. then you divide by 1024 and get 4.194.304 kbytes, 4.096 mbytes and 4 gbytes. sorry it took this long, thanks to all for the feedback.