Peruse "in-depth understanding of computer systems (third edition)" Chapter One study concluded

Peruse "in-depth understanding of computer systems (third edition)" Chapter One study concluded

Learning content summary

  • This section with a hello.c program as an example, then the working mechanism of the various hardware systems vague description of hello.c file by tracking the life cycle. From the file is read starting GCC compiler, then the compiler operates the file system, converts it into the final executable file, book also described in detail. Whereby then leads to some of the details associated therewith, and further explanation of these issues. Here are a few important things Summary:
    Process (1) in the figure below, note that when the assembler is part of the text in the process assembler, binary into a text composed in the link stage with the use of files generated by the libraries are combined, before the formation of the final executable file, the file system can be executed, it is performed last, the order not to be confused.

    (2) This is a typical case of FIG computer hardware composition

    Bus : is responsible for passing information between the various components byte
    I / O device : the system is responsible for contact with the external apparatus
    main memory : when the processor executes the program, is responsible for temporary storing programs and a data processing program
    processor : interpretation or execution of instructions stored in main memory of the engine, at the request of the common operation of the CPU will execute instructions include: load, store, operation, jump
    (3) each computer the storage devices are organized into a hierarchy of memory, as shown

    from top to bottom, the device access speed more slowly, increasing capacity.
    (4) operating system is the intermediary between applications and computer hardware. It provides three basic abstraction: the file is an abstraction of I / O devices; abstract virtual memory is main memory and disk; the process is for the processor, main memory, abstract I / O devices.
    (5) Finally, the network than creating An I / O devices.

Textbook learning and problem-solving process

  • Read cache this summary, I would like to understand prior to his understanding of "Why caches exist?" The computer running just to stay in raising the level of efficiency, more range, it ignores comparative study, ponder why the main memory , the disk can not replace their work, I have to say that knowledge of the earlier described do a very good bedding for the level of knowledge of continuous progress behind. Main memory unit cost is relatively low, large main memory storage space, but want to improve CPU reads data from main memory speed is difficult, but its smaller than the storage device operates according to the principle of a large machine memory storage device slow performance for the balance of their work is a very learned problem. Therefore, the cache there appeared to ease the data on a computer running too slow reading and writing problem to some extent. Today, to some extent, for the different needs of different groups, giving rise to a wide variety of different computer configurations to meet people's needs.

Code debugging and problem solving in the process

  • Question 1: In this chapter run when output helloword small program, c language standard library is not found on your linux system, causing the program not work properly
  • Problem 1 Solution: specific process can be found in http://blog.sina.com.cn/s/blog_6dd71c3c0101mh3h.html
  • Question 2: When writing c program, use vi very difficult, often by mistake.
  • Problem 2 Solution: Install VIM, vim is a vi advanced version, it can determine based on the file extension or the beginning of the message within the file contents of the file and automatically call syntax predicate of the program, it is equivalent to a " program editor ", it is also very easy to use, write notepad similar.

Code hosting

Screenshot due yet to learn scripting, so the teacher does not use a script written statistics.sh, where only the c file upload code to the success of the initial state of the cloud.

Sentiment

After the learning process not only encountered a lot of problems large and small, to solve those problems through a network greatly improved their interest in learning, but also enhances self-confidence.

Guess you like

Origin www.cnblogs.com/lilei0915lgz/p/11762544.html