The answer to this question is a whole course in itself! A very brief summary of what (usually) happens is that:
- You, the programmer, indicate what is happening in RAM. Well, the compiler does this on your behalf, but you control it by how you declare your variables.
- , , CPU MMU , , , "", . ( ) , . , MMU "-", . , , . MMU, , ..
- - , , ALU ( ) , . , .
(DMA), , . ( UART /). , .
, , , , , , , . ( " " C: , .) , . - , . ( Leeor .)