Ram usage

I started to think a bit about Ram, …

And I came to conclusion don’t we use more ram for reference if RAM is bigger?

and if I’m right how much more ram is used per 1reference/RamSize

or am I totally wrong? and if I’m am why?

I’m not 100% sure of all the details, but this is a difference between 32-bit and 64-bit CPUs. 32-bit CPUs used 32 bits for each reference. This means without a workaround, it was able to only access 4GB amount of RAM, because that’s all the addresses you get with 32-bits. With a 64-bit CPU this limit is raised to 16 exbibytes, which I can’t even comprehend how much RAM that is…

I feel like there are other factors that cause a program to use more space in RAM if more is available. Mainly, things like garbage collection don’t need to run very often or at all, while on an older mobile device garbage collection would have to be very aggressive.

thanks didn’t know 32 bits were enough for whole 4GB, …

if i understood correctly, with a 64 bit architecture you DO use more bits for referencing adresses, but one reference takes up only one slot in memory, that slot being of 64 bits, so in terms of memory usage it should be the same ( both architectures take up 1 slot for referencing adress ) . But i might be wrong

well I understand it like:

32 bit CPU uses 32 bits for reference.
while uses 1 bit for bool.
64 bit CPU uses 64 bits for reference
while uses 1 bit for bool.

Well after he explained it to me It made sence why we don’t have 128 bit processors yet or even 256, …
I was always wandering that part and now I even understand what 32 bit and 64 bit process is, …

witch in general means 64 bit uses more memory than 32 bit but both are same fast but can only use certain amount of RAM, …

well untill we won’t have 18 E (eksa) RAM we won’t need 128 bit CPUs

2^64 = 18 | 446 744 073 | 709 551 616

well the table goes:
da (deka) 10^1
h (hekto) 10^2
k (kilo) 10^3
M (mega) 10^6
G (giga) 10^9
T (tera) 10^12
P (peta) 10^15
E (eksa) 10^18
Z (zeta) 10^21
Y (jota) 10^24

Interesting but something to add, i dunno the implementations on other languages, but in C# a bool takes up 1 entire byte. But you got the “BitArray” for example that uses bits to represent bools instead of a byte ( for performance purposes )