Похожие чаты

Good day fellow Linux lovers. I am having trouble grasping

how vritual addresses are mapped to physical addresses.

C++ Code Snippet illustration:
1-
2- int a = 20;
3- int *b = &a;
4-
5- std::cout « b « std::endl;
6-
7- *b = 21;

I understand that line 5 prints the virtual address of "a", but on line 7, does the program consult the kernel at all, in order to resolve the physical address that 20 will be stored in?

1 ответов

27 просмотров

Most probably, the program is unaware that it doesn't have a real address space and kernel maps that automatically upon request. But I haven't touched this subject in a long time, you should read kernel docs or even a book, but with book you have to keep in mind that a large part of their info becomes outdated fast.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта