Home > Common Problem > In what format are programs and data stored in memory?

In what format are programs and data stored in memory?

青灯夜游
Release: 2020-10-26 15:33:20
Original
18225 people have browsed it

Programs and data are stored in the memory in "binary code" format, and the storage location is determined by the address. The carrier that collects storage units in the memory is called a memory bank. Each unit in the memory bank can store information represented by a string of binary codes. The total number of bits of this information is called the word length of a storage unit.

In what format are programs and data stored in memory?

Data and programs are stored in the memory in the form of binary codes, and the storage location is determined by the address.

Memory is a collection of many storage units, arranged in order of unit numbers. Each unit is composed of a number of ternary bits to represent the value stored in the storage unit. This structure is very similar to the structure of an array, so in the VHDL language, an array is usually used to describe the memory.

Memory is a memory component used to store programs and various data information. Memory can be divided into two categories: main memory (referred to as main memory or memory) and auxiliary memory (referred to as auxiliary memory or external memory). It is the main memory that directly exchanges information with the CPU.

The main memory works by storing or reading various types of information according to the address of the storage unit, collectively referred to as access memory. The carrier that collects storage units in the main memory is called a memory bank. Each unit in the memory bank can store information represented by a string of binary codes. The total number of bits of this information is called the word length of a storage unit. There is a one-to-one correspondence between the address of the storage unit and the information stored in it. There is only one unit address, which is fixed, but the information stored in it can be replaced.

The binary code indicating each unit is called the address code. When looking for a certain unit, first give its address code. The register that temporarily stores this address code is called the memory address register (MAR). In order to store information taken out from the storage unit of the main memory or information to be stored in a certain storage unit, a memory data register (MDR) is also set up.

The above is the detailed content of In what format are programs and data stored in memory?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template