欢迎来到淘文阁 - 分享文档赚钱的网站! | 帮助中心 好文档才是您的得力助手!
淘文阁 - 分享文档赚钱的网站
全部分类
  • 研究报告>
  • 管理文献>
  • 标准材料>
  • 技术资料>
  • 教育专区>
  • 应用文书>
  • 生活休闲>
  • 考试试题>
  • pptx模板>
  • 工商注册>
  • 期刊短文>
  • 图片设计>
  • ImageVerifierCode 换一换

    软硬件系统编程PPT (22).pdf

    • 资源ID:67732315       资源大小:1.84MB        全文页数:15页
    • 资源格式: PDF        下载积分:8金币
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录   QQ登录  
    二维码
    微信扫一扫登录
    下载资源需要8金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    软硬件系统编程PPT (22).pdf

    存储器管理存储器管理 Storage Management Programs written by users and the data are stored in the form of files in external storage.It must be imported into memory before executing.Importing the program from the hard disk to the internal storage involves the following steps:compilation link object object programprogram executable executable programprogram source source programprogram Note the reason Written in programing languages Written in machine languages of 0 and 1 Processing of user programs Memory Loading Link Object program of machine language Library Library functionfunction Compile 3 The compiled object program modules are connected and assembled together,and then connected with the function library to form a whole.By operating system Questions Where in memory should the program and data be stored?What if the program is too big to be stored in memory?Will the address of a program remain the same after being imported into memory several times?Will different programs disturb each other as they are all imported into memory?5 Import programs from the online external storage(hard disk)into memory Address conversion.Convert the address of the program into that of memory.Storage allocation.Allocate memory space to programs Uniformly manage the hard disk and memory to form the storage system and expand storage capacity Expand storage capacity::to ensure that big programs can execute in small storage Storage protection Protect programs and data zone from being damaged Main functions of storage management Program is a sequence of instructions.The location of each instruction in program is described as address.6 Storage allocation and address conversion 12345H 11H mov ax,59e8h mov cx,5 L1:inc bx add al,bx loop L1 Memory is organized in units.Each unit has the only address in memory.Symbolic addressSymbolic address Physical addressPhysical address Address conversion is the process to match the symbolic address with the physical address in memory.7 Since compiler doesnt know the address of the object program in memory,the logical address of all object programs starts with 0.8 mov ax,59e8h mov cx,5 L1:inc bx add al,bx loop L1 0000H:B8E859H 000BH:B90500 000EH:43H 000FH:0207H 0011H:E2FBH Logical address Compilation Mechanical address 0000H:B8E859H 000BH:B90500 000EH:43H 000FH:0207H 0011H:E2FBH Object program in machine language When loading into memory,the logical address must be transformed into physical address in memory.9 loading B8E859H B90500 43H 0207H E2FBH 10000H 1000BH 1000EH 1000FH 10011H memorymemory Address relocation:the process of transforming logical address of the program into physical address in memory,including:Static relocation,dynamic relocation Dynamic relocation is commonly adopted by modern computers Program relocates during execution,which means the logical address of program is transformed into physical address through hardware address translation mechanism every time before visiting memory units.10 Storage allocation and address conversion 0000H:B8E859H 000BH:B90500 000EH:43H 000FH:0207H 0011H:E2FBH 10000H+000EH B8E859H B90500 43H 0207H E2FBH 10000H 1000BH 1000EH 1000FH 10011H memorymemory Original address when importing into memory Example of address conversion Relative address Relocation address 12 The object module doesnt need to make any changes when loading into main memory.After loading,it can execute normally without being affected by any movements;If a module is composed of several independent object modules,each object module can be loaded into nonadjacent spaces in memory to take full advantage of memory space and share resources.Features of dynamic relocation:Storage protection Generally,computer programs include:System program,user program Purpose of storage protection:Different types of programs are stored in different spaces.Safeguard by ensuring all programs execute independently in their own spaces without disturbing each other.13 System region User region Spaces protection of main memory 14 Storage expansion Objectives of storage expansion:How to execute large programs in smaller memory Methods:Automatic coverage technique“exchange”technique Virtual storage technique Virtual Storage Technique Uniformly manage memory and part of the hard disk to utilize external storage as memory.For users,there seems to have a memory space with sufficient capacity,where they can write programs in this space without worrying the capacity of memory.Virtual Storage memory External storage Storage capacity expansionStorage capacity expansion

    注意事项

    本文(软硬件系统编程PPT (22).pdf)为本站会员(奉***)主动上传,淘文阁 - 分享文档赚钱的网站仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知淘文阁 - 分享文档赚钱的网站(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于淘文阁 - 版权申诉 - 用户使用规则 - 积分规则 - 联系我们

    本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

    工信部备案号:黑ICP备15003705号 © 2020-2023 www.taowenge.com 淘文阁 

    收起
    展开