当前位置: 首页 > news >正文

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

《Programming from the Ground Up》学习第4天,p75-p87总结,总计13页。

一、技术总结

1.persistent 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.

存储在文件中的数据称为persistent data,因为即使程序每页运行,数据仍保留在磁盘上的文件里。

2.buffer

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.

3.equ指令

这是本书有一个不大好的地方,很多指令首次引入的时候缺少定义。例如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。

这里作者应该介绍下equ是什么?参考《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。这样我们就知道了equ这三个字母来自于equate,这样也方便了初学者记忆。

4.constant(常量)

p88, In programming, a constant is a value that is assigned when a program assembles or compiles, and is never changed.在编程中,constant(常量)是在程序汇编或者程序编译时分配的值,分配后就不再改变。

二、英语总结

1.tedious

(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。词组: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.

2.meat

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

"meat"用的最多的意思是“u.the flesh of animals(肉)”。这里是一种比喻意义的用法,meat在这里的意思是“n. the core part of sth.”,所以,上没这句话的意思就是“首先决定主要目标这种技巧在编写复杂程序时很有用”。

3.help out/help (someone) out

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

在这句话中,help out把宾语省略了,应该是help us out, 或者help you out,这样更容易理解,即.equ指令会对我们有所帮助。

三、其它

p77,Second, it uses up space in the executable.这句话翻译成中文的意思是“其次,它会用尽可执行文件中的空间”,不是很理解这里为什么使用use up来描述,感觉和use的意思更接近。

四、参考资料

1. 编程

(1)Jonathan Bartlett,《Programming From The Ground Up》:https://book.douban.com/subject/1787855/

2. 英语

(1)Etymology Dictionary:https://www.etymonline.com

(2) Cambridge Dictionary:https://dictionary.cambridge.org
在这里插入图片描述

欢迎搜索及关注:编程人(a_codists)

相关文章:

  • css更改图片颜色
  • ReadAgent,一款具有要点记忆的人工智能阅读代理
  • Vue3点击按钮实现跳转页面并携带参数
  • openFeign配置okhttp
  • 63.利用PEB获取模块列表
  • Hive小文件合并
  • DDoS 究竟在攻击什么?
  • 每日任务:TCP/IP模型和OSI模型的区别
  • VsCode | 让空文件夹始终展开不折叠
  • 算法与算法分析
  • gitlab更新了ssh-key之后再登录还是要求输入密码, 报 Permission denied, please try again.
  • win11 安装 Gradle
  • ROM修改进阶教程------修改rom 开机自动安装指定apk 自启脚本完整步骤解析
  • [Day 36] 區塊鏈與人工智能的聯動應用:理論、技術與實踐
  • 通过iframe碎片实现web局部打印
  • [译] 理解数组在 PHP 内部的实现(给PHP开发者的PHP源码-第四部分)
  • 【EOS】Cleos基础
  • ➹使用webpack配置多页面应用(MPA)
  • android 一些 utils
  • Angular2开发踩坑系列-生产环境编译
  • Django 博客开发教程 16 - 统计文章阅读量
  • Fabric架构演变之路
  • flask接收请求并推入栈
  • Java反射-动态类加载和重新加载
  • JS数组方法汇总
  • OSS Web直传 (文件图片)
  • Stream流与Lambda表达式(三) 静态工厂类Collectors
  • web标准化(下)
  • 对话:中国为什么有前途/ 写给中国的经济学
  • 机器学习学习笔记一
  • 简析gRPC client 连接管理
  • 数组大概知多少
  • 微信开源mars源码分析1—上层samples分析
  • 小李飞刀:SQL题目刷起来!
  • 一些关于Rust在2019年的思考
  • 移动端 h5开发相关内容总结(三)
  • # 数仓建模:如何构建主题宽表模型?
  • #基础#使用Jupyter进行Notebook的转换 .ipynb文件导出为.md文件
  • $(document).ready(function(){}), $().ready(function(){})和$(function(){})三者区别
  • %@ page import=%的用法
  • (2024.6.23)最新版MAVEN的安装和配置教程(超详细)
  • (附源码)springboot宠物医疗服务网站 毕业设计688413
  • (蓝桥杯每日一题)love
  • (十三)Maven插件解析运行机制
  • (推荐)叮当——中文语音对话机器人
  • (五)activiti-modeler 编辑器初步优化
  • (详细文档!)javaswing图书管理系统+mysql数据库
  • (原創) 如何刪除Windows Live Writer留在本機的文章? (Web) (Windows Live Writer)
  • (转) RFS+AutoItLibrary测试web对话框
  • (转)Windows2003安全设置/维护
  • (转)程序员疫苗:代码注入
  • .equals()到底是什么意思?
  • .NET “底层”异步编程模式——异步编程模型(Asynchronous Programming Model,APM)...
  • .net framework profiles /.net framework 配置
  • .net 流——流的类型体系简单介绍