Where is the data stored?
A: The data is stored in a memory
So what is memory?
Okay, I do not exactly explain. But I know what that can store data
- Paper (paper tape punch imagine, both instructions and data before the above code)
- Memory (storage medium is now a transistor (earlier there are other means of "mercury delay line memory"))
- Register (storage medium as transistors)
- hard disk
- Cache parts
Memory capacity problem? (Herein referred to as memory, registers)
How much data can be stored, the need to quantify this. For example, you go to point B from A. You tell people I ran so long, so long? Ignorant force
a memory transistor is composed of two states represents a transistor, the transistor can be represented by a set of multiple states.
Then a transistor can store two states, called bit. There are similar B, KB, MB, GB, TB, PB, EB, ZB, YB, BB, NB, DB.
Then to develop a conversion relationship storage unit by the chiefs. Difficult to understand? (10 mm = 1 cm, 100 cm = 1 m, provided these are people, when we all recognized this when it is the standard)
Memory unit is relatively generous memory division, the smallest unit is a byte Byte, then each memory cell number
Each grid is a little bit
According to the definition of big brother, Byte. 1 (B) =. 8 'bit , I hope you can understand
There are three things to consider
- coding
- Arrangement of data in the memory
- data range
Storage: Digital 10
- 10 XXX encoded digital
- Problems arrangement does not exist, a 256-byte expressible states, 10 <256
- Minimum storage memory in bytes, the byte number 10 occupies a
Storage: a character
- The computer is able to store two states (an electrical signal, 0 or 1, high and low), regardless of how appreciated that two states are used to express a combination of a plurality of transistors on a larger state. So the problem here is that a character can not be stored directly, we need to encode characters. After storing the encoded value. (For example, you know you want to see a red light stop, green light can be seen walking, and this is to go and stop coding.)
- Ditto
- Ditto
Storage: 300.232323
- coding
- Certainly not with a 300 byte memory, because that is one byte can only express 256,300> 256. We need two storage units (2 bytes) then there is a problem of the arrangement. In the end is 3000 or 0030? This is the end of the issue size. If little endian mode, the digital low position in the address, data in the high-high, low high memory address is assumed to be aligned then it is 0030. Instead the big end
3 2 bytes
to sum up:
Coding (coding is not the only way, a wide variety.)
Integer: Complement
Decimal: float compliance is IEEE R32.24, while double compliance is R64.53.
character:
Letters: ASCII
Character: GBK, GBK2312
term:
Garbled: Use your use of the complement encode integer, when decoding using ASCII, this phenomenon is garbled friends
You use of GBK character encoding, decoding and the lack of use UNICODE
arranged
size end