2013年11月29日 星期五

About 64bit application & OS & processor

最近在想kvm for ARMv8有什麼好處
想一想發現其實這就等同於ARMv8有什麼好處

我想最重要的一點就是64bit processor吧
由此又想到一堆關於32bit vs 64bit virtualization的問題
  • 64bit guest OS run on 32bit host OS?
  • 64bit guest OS run on 32bit processor?
  • Linux program run on Windows and vice versa?
看了這篇文章後我想答案是 http://www.techsupportalert.com/content/32-bit-and-64-bit-explained.htm
  • 只要是是64bit processor就可以run 64bit guest OS,但通常virtual machine設計會規定要有hardware virtualization support才可以,因為software virtualization會需要每個guest 64bit instruction都trap進32bit host來作simulation,相當慢!
  • Virtual machine無法,但simulator&emulator就可以,因為virtual machine是作OS virtualization,而64bit OS cannot run on 32bit processor,但simulator是作hardware virtualization,所以simulator可以在32bit processor上模擬一個64bit virtual processor,想當然就可以跑64bit guest OS
  • There are two main reasons that binarys from one OS can't be run on another OS. First is the fact that the binarys are in different formats. Linux uses ELF, and Windows uses PE. Now that compatibility can easlily be overcome, but the other problem is the OS library functions that all applications use must be ported over as well. Applications need to use OS system functions to do just about anything at all. This includes printing to the console, opening/closing files, creating windows, etc.


以下整理該文章我看到的一些重點
The main issue is that your computer works from the hardware such as the processor (or CPU, as it is called), through the operating system (OS), to the highest level which is your applications. So the computer hardware is designed first, the matching operating systems are developed, and finally the applications appear.


But a 64-bit application will only run on a 64-bit OS and a 64-bit OS will only run on a 64-bit processor.


An example of backward compatibility is Windows 64-bit. It has software called WOW64 that provides compatibility by emulating a 32-bit system.
One important point that is made in that article is that it is not possible to install a 32-bit device driver on a 64-bit operating system. Because device driver is at the same level with OS.

Following the general rule, we would expect that you cannot run 64-bit software on a 32-bit system. Except that there is one exception called virtualization.


Virtual Machine: OS virtualization.
Simulator & Emulator: Hardware virtualization.
So virtual machine in 32bit processor cannot run 64bit guest OS.
However, simulator in 32bit processor can simulate 64bit machine and run 64bit OS.


Reference : http://www.techsupportalert.com/content/32-bit-and-64-bit-explained.htm

Related Posts:

  • 離校與社團擺攤走一遭跑離校時剛好碰到大一新生們的社團博覽會,拿離校單闖關時一直經過攤位區, 看到大家拿著的傳單拉攏新生,我手上拿著的卻是畢業證書封皮, 原本想說拿著封皮就老了沒傳單拿,不過還是有個法輪大法的朋友發傳單給我,哈 第一趟經過攤位覺得時間過的真快, 大一時也跟著朋友們到處亂跑拿傳單,然後加入劍道社, 大二三時變成顧著攤位到處拉攏新生的人, 隱約覺得某年擺攤結束後還跟竹友會的學長姐弟妹們打水仗,太遙遠了不知道是不是記錯了 到中正堂闖關… Read More
  • 11/29九合一選舉感想這次選舉還算是有點在關心 以前我對政治還蠻冷感的,一直到食安問題發生讓我覺得應該要多多注意一下國家的施政 食安問題接連爆發突然讓我覺得生在台灣,活著的權利一點一滴地被剝奪 我一直覺得能活著很酷,可以有無限的夢想,做想做的事情,體驗不同的生活,過想過的日子 但每天都要吃的食物卻可能是造成癌症罹患率節節高升的原因 不知道什麼可以吃什麼不能吃,因為你吃的東西可能正在剝奪你的生命 然後我開始害怕,腦子裡想過的夢想可能都沒機會嘗試然後就掛了,這真是太很可… Read More
  • 2014/12 劍道月感想12/7 關西劍道聯盟 12/13~14大專盃 12/20~21中正盃 這學期劍道活動主要就是這些,因為連三周太操了,所以我們中正盃就沒出男子隊 原本有再想說跟學長們出劍友隊,後來還是算了 關西劍道聯盟跟大專盃開始前一周一直有種很忐忑的感覺 一是怕被日本人秒殺很丟臉 二是怕大專盃主將站不穩,很怕什麼名次都沒拿就打包回家 這是最後一次大專盃了,第一次有這種害怕沒得名的感覺 可能是覺得會遺憾吧,而且還有個想法是想陪曜宇再打個名次 當初屌人男子隊… Read More
  • TEDxTaipei 心理學觀點的「幸運關鍵」:劉軒http://tedxtaipei.com/talks/2014-xuan-liu/ 自我效能感(self  efficacy): 我能冷靜地面對困難,因為我可信賴自己處理問題的能力。 有麻煩的時候,我通常能想到一些應付的方法。 如果我付出必要的努力,我依定能解決大多數的難題。 自我效能感與自己的幸運感及生活滿意度有極大關係: 提升自我效能感: 自我效能感是建置於能力、信心之上,兩者所交會的區為Lucky Zone A… Read More
  • AMD A10-7850KFrom: http://www.forbes.com/sites/davealtavilla/2014/01/14/amds-kaveri-apu-with-radeon-r7-graphics-targets-mainstream-power-efficient-computing/ There is a 8-core GCN implementation in Kaveri that consumes a substantial 47% … Read More

0 意見:

張貼留言