地址空间中可以有多少个字? [英] How many words can be in the address space?

查看:31
本文介绍了地址空间中可以有多少个字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我正在解决的问题

问题:高速工作站具有 64 位字和 64 位地址,地址解析为字节级别.工作站的地址空间中可以有多少个字?

The Problem: A high speed workstation has 64 bit words and 64 bit addresses with address resolution at the byte level. How many words can in be in the address space of the workstation?

我在问题中定义了不同的术语

I defined the different terms in the problem

  • Word Size - Processor natural unit of data. The word size determines the amount of information that can be processed in one go
  • Byte Level Addressing - Hardware architectures that support accessing individual bytes within a word
  • 64 Bit Addressing - You have have 64 bits to specify an address in Runtime memory that holds an instruction or data
  • Address Space - Running program's view of memory in the system

您将如何使用所有这些定义来解决这个问题?

How would you go about using all these definitions to solve this problem?

从 64 位开始,我知道从技术上讲,内存中有 2^64 个位置,从 64 位字开始,处理器一次处理 8 个字节.但是我不知道如何使用这些信息来推断计算机地址空间中有多少字.

From 64 bits, I know that technically there are 2^64 locations in memory and from 64 bit words, that a processor processes 8 bytes a time. But I don't know how to use that information to conclude how many words are in the address space of the computer.

推荐答案

感谢 aruisdante 的评论,我能够解决这个问题.

Thanks to aruisdante's comment, I was able to figure this out.

基本上 64 位地址意味着总共有 2 ^ 64 个地址.因为这里使用了字节可寻址内存,所以每个地址会存储一个字节.

Basically 64 bit addresses means there are 2 ^ 64 total addresses. Because byte addressable memory is used here, each address will store one byte.

这意味着,在地址空间中,总共可以存储2^64个字节.问题告诉您机器有 64 位字或每个字有 8 个字节长.因此,您在地址空间中有 2^64/8 或 2^64/2^3 = 2^61 个字.

This means that in total, in the address space, 2 ^ 64 bytes can be stored. The problem tells you that the machine has 64 bit words or that each word is 8 bytes long. Therefore you have 2^64/8 or 2^64/2^3 = 2^61 words in the address space.

这篇关于地址空间中可以有多少个字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆