NTU-Exam 板


LINE

課程名稱︰虛擬機器 課程性質︰選修 課程教師︰徐慰中 開課學院:電資學院 開課系所︰資工所、網媒所 考試日期(年月日)︰2015.04.09 考試時限(分鐘): 試題 : 1) Which of the following programs make intrinsically compatible extremely difficult? A) A program which uses OpenGL intensively B) A program does a checksum of all memory locations that it can reach. C) A guest process uses all virtual address space D) A program which is sensitive to FP accuracy based on 80 bit Intel extended precision format 2) To maintain trap compatibility, which of the following instructions (after being translated into target code) are more constrained to be removed A) Load instructions B) Store instructions C) FP instructions D) Integer instructions 3) What is the main reason that ordinary load instructions should not be used as cache prefetch instructions? A) They will modify target registers B) They may generate traps C) They will waste memory bandwidth D) They have long latency since they must wait until the target register is loaded. 4) When we said "runtime code" "runtime data" in this chapter, what does it mean by "runtime"? A) The VM software layer B) The EM manager, the interpreter, the DBT translator, and so on. C) The OS D) The guest process 5) With binary translation, when the emulation is changing from the runtime mode to the emulation mode, which of the following memory sections must change protections? A) Guest data B) Code Cache C) Runtime Code D) Runtime Data E) Guest Code 6) In process VM, which of the following memory areas are very difficult to protect against illegal accesses from the translated code. A) Guest code B) Runtime data C) Memory mapped architecture states D) Guest read only data 7) Why are interrupts easier to handle than traps in process VMs? A) Precise architecture states can be more easily recovered B) Interrupts can be delayed indefinitely C) Interrupts can be ignored D) Interrupts can be handled at a more convenient time 8) In a process VM, when an interrupt occurs, the runtime needs to unchain blocks for the currently executed block. Why? A) Unchaining is to avoid looping B) Unchaining is to force emulation goes back to the emulation engine C) Unchaining is to force the emulation manager to recover the precise guest states D) Unchaining is to remove stale code 9) For process VMs, to emulate OS calls under the same OS, what tasks must be done? A) A wrapper routine (jacket) for each system call B) A copy of the guest OS code must be provided C) Type conversions of passed parameters may be required D) Instruction to Instruction binary translation is required for each emulated system calls 10) Code caches are often managed with the simple flush-when-full policy. Why not use the allocate-when-needed policy? Which of the following are true or even partially true? A) Memory thrashing may be more expensive than re-translations B) Code cache management is needed anyway even if the allocate-when-needed policy is used C) Flush has the advantage of getting rid of stale translated traces D) Allocate-when-needed may end up with decreased locality 11) If intrinsic compatibility is required, which of the following instruction optimizations are not allowed: A) dead code elimination B) load reordering C) store reordering D) merging FADD and data dependent FMUL into one FMAC instruction 12) In terms of memory protection emulation, which of the following cases are easier to handle: A) Host page size is larger than the guest page size B) Guest offers variable size pages, host does not C) Guest page size is larger than the host page size D) Host offers variable size pages 13) To recover the guest PC at a trap could be as simple as recovering a PC at a debug trap, why some process VMs prefer to use a re-translation approach: A) Space overhead for side tables may be excessive B) Side tables are hard to maintain when optimizations are performed C) Frequency for traps with precise states is supposed to be low D) Less engineering efforts 14) A Process VM migrates ARM code to x86. If an application registered a data mis-alignment trap handler, how should the VM check for such mis-alignment traps? A) Let the host trap and catch it B) Using the interpreter to check for this trap C) Generate explicit instructions to check for such traps D) Ignore that trap, claim that we only support extrinsic compatibility 15) How is a code cache (as in process VM) different from a hardware cache? A) Code cache is managed by SW B) Code cache miss is more expensive than a HW cache miss C) Code cache lines are variable length D) Code cache lines have no tags Ans: 1) B, C, D 2) A, B, C 3) B 4) A, B 5) B, C, D 6) C 7) A, D 8) A, B, C 9) A, C 10) A, B, C, D 11) A, B, C, D 12) C, D 13) A, B, C, D 14) B, C 15) A, B, C, D --



※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.24.41.217
※ 文章網址: https://webptt.com/m.aspx?n=bbs/NTU-Exam/M.1429950180.A.D6A.html
1F:→ rod24574575 : 已收資訊系! 04/25 16:23
※ 編輯: rod24574575 (114.24.78.41), 06/13/2015 08:42:31







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:BuyTogether站內搜尋

TOP