|
抽象与现实(虚拟化)
===================
- 抽象,虚拟,人之认识世界之道也, 也是编程之道也
- 通过虚拟, 还原自然
- 通过虚拟, 作用自然
- 现实例子
C-Model
VOM
Vitual File System, Virtual Memory Management, Virtual ...
- Logic vs Physical (Virtual vs Reality)
- LBA (PBA) (In HD access, local block address vs physical block address)
- VMM (Virtual Memory Management): in Linux or other OS, logic memory address is not equal
to physical memory address
- For language, it's logic, not physical realizing, code should be converted to physical
by interpretor or compiler
so, we programming logic --- this is the most important point in programming
Simple way to seperate logic and physical in embedded code is: two dir, one is for logic, another
one is for specific HW (SOC)
so, following coding is not allowed in our logic code portion:
mvd[0x1200] = 0x1f32;
ptr = 0x1200000;
|
|