In-depth understanding of the second chapter of computer system reading notes and the representation and processing of information

Source: Internet
Author: User

This chapter reads, well, how do you feel about it?

Just read it, did not think the first chapter, there are specific some of the harvest or something. may be not very serious to read. Read in a hurry, some of the content is very obscure and difficult to understand ...

In any case, write your own harvest.

This chapter is about the presentation and processing of information,

How is the information represented in the system? is to store them in bytes. Information is a bit + context (in the first chapter)

How is the specific information expressed?

Signed integers, unsigned integers, floating-point numbers, and so on.

1-bit arithmetic

SHIFT, Shift right

X>>k

is divided into two forms

(1) Logically, the right shift is the addition of K 0 [an-1,an-2,..... A0] shift to the left end to [0,0,0,0,0,..... an-1,an-2,.... AK]

(2) Arithmetic, the right shift is to add k the most significant bit on the left side, [An-1,an-2,..... A0] shifted to [an-1,an-1,an-1,an-1,..... an-1,an-2,.... AK]

General shifts are arithmetic shifts.

2 floating point

Floating-point numbers indicate that because of the validity of the position, the computer generally does not represent the floating-point number accurately, but the near-definite expression

The rounding rules for floating-point numbers are rounded to an even number (Round-to-even), or rounded to the nearest value (Round-to-nearest).

3 Note overflow

························································································································· ·········

That's all, and you'll have to read this chapter a bit later.

In-depth understanding of the second chapter of computer system reading notes and the representation and processing of information

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.