纬图虚拟仪器论坛

 找回密码
 立即注册
搜索
查看: 5239|回复: 1

[C/C++] 我的20年编程经验总结:10---抽象与现实(虚拟化)

[复制链接]
发表于 2014-8-8 07:58:51 | 显示全部楼层 |阅读模式
抽象与现实(虚拟化)
===================
- 抽象,虚拟,人之认识世界之道也, 也是编程之道也
- 通过虚拟, 还原自然
- 通过虚拟, 作用自然
- 现实例子
  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;
回复

使用道具 举报

发表于 2014-8-8 08:04:17 | 显示全部楼层

回帖奖励 +1

抽象与现实(虚拟化)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|纬图虚拟仪器

GMT+8, 2024-12-22 11:12 , Processed in 0.180053 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表