PCCU-CS 板


LINE

Loader 4 种 (A)Bootstrap Loader (启动载入器)1.在电脑开机时,用来载入第一个执行程式(通常是 作业系统)的绝对载入程式 2.不必执行连结与重定位3.单回合处理4.启动载入程式有固定 的程式起始位址(通常为 0) 5.作业系统的起始位址亦为固定启动6.载入程式本身应该很 小 (B)linking loader(连结载入程式)1.对一群需要连结的控制段(可重定位程式),进行连 结及载入,并执行所载入完整的程式2.由於外部参考的问题,需两回合来完成: Pass 1: 指定位址给所有的外部变数 Pass 2: 执行实际的载入、重定位及连结 (C)linkage editor(连结编辑程式)功能和Linking Loader一样。但是在Load之前就先做 了Link的动作。 (D)dynamic linking(动态连结程式)程式直到执行时直到执行时,才做才做Link的动作 。 Parse Tree <read> := READ ( <id-list> ) <id-list> := id VARIANCE := SUMSQ DIV 100 - MEAN * MEAN Array 分为两种主要格式:row major 以列为主[01.02.03.04.05.06][11.12.13...] column major 以行为主[01.11.21.31][02.12.22.32] 算法 ex:现有一个 row major 的, [01.02.03.04.05.06][11.12.13.14.15.16]....[31.32.33.34.35.36] 目的码产生[A]: A:ARRAY[1..10]OF INTEGER →... →... →... → A[I] :=5 (1)- I #1 i1 (I - 1 丢到 i1)原因: (2)* i1 #3 i2 (i1 * 3 丢到 i2)原因:1Word = 3Byte (3):= #5 A[i2] 目的码产生[B]: B:ARRAY[0...3,1...6]OF INTEGER →... →... →... → A[I,J] :=5 (1)* I #6 i1 (2)- J #1 i2 (3)+ i1 i2 i3 (4)* i3 #3 i4 (5):= #5 B[i4] FCFS、 LRU Suppose demand-paging is used in our system which allows three pages in the memory at a time. The program to be considered consists of pages unmbered 0 through 5. Page 4 is automatically loaded when we start running the program. Other pages are loaded as they are referenced by the page fault mechanism. Suppose the sequence of page references is in the following order: 4 3 5 5 5 1 1 3 5 5 4 3 5 1 3=> (a)Show the content of the memory after each memory reference using FCFS scheme. (b)how many page faults are generated during the program execution? 注:FCFS(先到先服务) LRU(最近用过的优先) 答:(A) 4,*34,*534,534,534,*153,153,153,153,153,*415,*341,*534,*153,153 (B):7 Page faults -- ▉╯╰ ▅▃▂ ▂ http://www.wretch.cc/blog/lightpink1 ╱ █ ╮╭ ▆▅ ▂▅▆ ╱ █ ╱ ╱ █ ╱ ▉ ◢▋ ▄▄ ▉ ◢▋ ╱ ████████████ ▉ ▆█◤ ▊ ▉ ▆█◤ ╱ ╱ █     ▋ ████████████   ▅▅ --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.137.20.1 ※ 编辑: u9555kimo 来自: 140.137.20.1 (06/04 17:02)







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灯, 水草

请输入看板名称,例如:Gossiping站内搜寻

TOP