I know Roots:
- static fields
- method parameters
- local fielfs
- f-queue, which also contains a pointer to objects to be completed.
- cpu register <= ???

Now let's talk about registers.
the code that they may contain looks like:
mov bx, 0034h ; bx = 52 (stored in 16 bits)
mov cl, bl ; cl = lower 8-bits of bx
mov eax, ecx
call print_int
but wait !
If im not mistaken, this is really a code that Holding those static, localand parameters- the first time!
So why write this TWICE ? (or from another direction?)
Why write (for example)
Foo f = new Foo();
**and also**
mov bx, 0034h
change
my register question comes from here:


source
share