[理工] 102中央計組

看板Grad-ProbAsk作者 (糯米)時間12年前 (2014/01/06 17:11), 編輯推噓1(108)
留言9則, 3人參與, 最新討論串1/2 (看更多)
1.Assume that a C program is compiled into 1000 machine instruction, which are related to the size of the executable file. Then, the average execution time is usually equal to multiplying 1000(instructions) by its average CPI and the clock cycle time. 這段敘述錯的地方是因為程式執行的指令數不一定是1000嗎? 2. The two properties critical to program correctness that are normally preserved by control dependency 這句看不太懂@_@ 是説比control dependency 更不能出錯的兩個性質? 3. 另外有關Two-level page table 它每個level只會有一個page table 被載入到記憶體 所以Two level就只會有兩個page table在記憶體 Three level 就是三個 這樣講有錯嗎? 謝謝了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 42.70.132.93

01/06 23:17, , 1F
exTime 跟instrution count有關不是machine code數目吧
01/06 23:17, 1F

01/06 23:29, , 2F
可以請問machine op 數跟instructin count的差別嗎
01/06 23:29, 2F

01/07 13:03, , 3F
抱歉推文時腦袋不清楚,剛再想是不是pipeline,可是pipeline也
01/07 13:03, 3F

01/07 13:04, , 4F
是[(s-1)+n]*cycle time,所以好像也不是@@"
01/07 13:04, 4F

01/07 13:08, , 5F
machine code跟library routine被link成excutable file,所以
01/07 13:08, 5F

01/07 13:08, , 6F
指令應該不只1000~
01/07 13:08, 6F

01/07 15:11, , 7F
題目有句related to the size of the executable
01/07 15:11, 7F

01/07 15:11, , 8F
file 不是表示machine code和 executable file 指令
01/07 15:11, 8F

01/07 15:12, , 9F
數相同?
01/07 15:12, 9F
文章代碼(AID): #1IodD1UZ (Grad-ProbAsk)
文章代碼(AID): #1IodD1UZ (Grad-ProbAsk)