Location>code7788 >text

《Programming from the Ground Up》阅读笔记:p75-p87

Popularity:329 ℃/2024-07-24 08:18:49

Programming from the Ground Up study day 4, p75-p87 summary totaling 13 pages.

I. Technical summary

data

p75, Data which is stored in files is called persistent data, because it persists in files that remain on disk even when the program isn't running.

Data stored in a file is called persistent data because even though the program runs on every page, the data remains in the file on disk.

p76, A buffer is a continuous block of bytes used for bulk data transfer. When you request to read a file, the operating system needs to have a place to store the data it reads. That place is called a buffe.

Another thing to note is that buffers are a fixed size, set by the programmer.

directives

This is one not-so-great aspect of the book, the lack of definitions when many instructions are first introduced. For example p80, For example, if you did .equ LINUX_SYSCALL, 0x80, any time after that you wrote LINUX_SYSCALL, the assembler would susbstitue 0x80 for that.

Here the author should introduceequwhat??consultation《x64 Assembly Language Step-by-Step: Programming with Linux》p211, A statement contianing the directive EQU is called an equate. An equate is a way of associating a values with a label。That's how we know.equThese three letters come fromequate,This also makes it easier for beginners to memorize。

(Constant)

p88, In programming, a constant is a value that is assigned when a program assembles or compiles, and is never changed.In Programming,constant(constant)is a value assigned at program assembly or program compilation time,No change after allocation。

II. English summary

(1)tedious < tedium < taedium。

(2)taed-: feelings of being weary of tired。

(3)tedium: u. the quality of being boring for a long time。

(4)tedious: adj. If you describe sth shuch as a job, task, or situation as tedious, you mean it is boring and rather frustrating。phrase (grammar):be tedious to do sth。

p77, First, it is tedios to type. You would have to type 500 numbers after the .byte declaration, and they wouldn't be used for anything but to take up space.

p80, That's a useful trick in writing complex programs-first decide the meat of what is being done.

The most common use of "meat" is "flesh of animals". This is a metaphorical use of the word "meat", which means "n. the core part of sth.", so the meaning of this sentence is "The technique of deciding on the main goal first is very useful in writing complex programs! ".

out/help (someone) out

p80,In this program we will also introduce a new directive, .equ which should help out。

In this sentence, help out leaves out the object; it should be help us out, or help you out, which would be easier to understand, i.e., the .equ directive would be helpful.

III. Other

p77, Second, it uses up space in the executable. This sentence translated into Chinese means "Second, it will exhaust the space in the executable file", I do not quite understand why use up is used here to describe, I feel that it is closer to the meaning of use.

IV. References

1. Programming

(1)Jonathan Bartlett,《Programming From The Ground Up》:/subject/1787855/

2. English

(1)Etymology Dictionary:

(2) Cambridge Dictionary:

Welcome to search and follow: programmers (a_codists)