首页 > 其他分享 >《Programming from the Ground Up》阅读笔记:p1-p18

《Programming from the Ground Up》阅读笔记:p1-p18

时间:2024-06-30 23:43:26浏览次数:14  
标签:p1 into Programming Up base mode Ground

《Programming from the Ground Up》学习第1天,p1-18总结,总计18页。

一、技术总结

1.fetch-execute cycle

p9, The CPU reads in instructions from memory one at a time and executes them. This is known as the fetch-execute cycle。

2.general-purpose vs special-purpose

(1)general-purpose: 通用的,翻译的时候为了简洁性,可省略“的”字。例如:general-purpose register——通用寄存器。

(2)special-purpose:专用的,翻译的时候为了简洁性,可省略“的”字。例如:special-purpose register——专用寄存器。当然,也可以翻译成“特殊的”。

3.addressing mode

(1)immediate mode(立即寻址)

(2)direct addressing mode(直接寻址)

(3)register addressing mode(寄存器寻址)

(4)indexed addressing mode(变址寻址)

(5)indirect addressing mode(间接寻址)

(6)base pointer addressing mode(基址寻址)

其实这里是重点,但是书中没有详细的例子,这里先了解概念,继续往下读。

二、英语总结

1.with style

p1, I enjoy the challenge to not only make a working program, but to do so with style。

“with style”的意思是“put some thougt, design and so on into sth, and make sth impressive”。style在这里指的是编程风格,例如:谷歌的编程风格指南https://google.github.io/styleguide/。

2.concept vs conception

参考stackexchange(https://ell.stackexchange.com/questions/7620/concept-and-conception)的回答:

You use conception when talking about an idea or notion that someone has. When used in this sense, it always belongs to someone, or to a group of people. A concept is simply an idea or notion, in an abstract sense. It belongs to no one.

For example, you and I may agree that:

Freedom is a concept.

...in that we both agree that there exists an idea called "freedom." However, it is possible that:

Your conception of freedom differs from mine.

...in that if we were both asked to define freedom, we would give two different answers. Your mental model of the concept of freedom is your conception of it.

3.frustrate

p1, Most introductory books on programming frustrate me to no end。

frustrate: to make sb feel annoyed or less confident(使xxx沮丧)。

to no end: 无止境的。

所以这句话的意思是“大多数关于编程的介绍性书籍都让我感到无止境的沮丧”。其实自己是理解英文的意思的,但是还想翻译成中文,这个习惯不好。理解英文后应该继续往下读。

4.base on vs base off of

p7, Modern computer architecture is based off of an architecture called the Von Neumann architecture, named after its creator。

在这句话中base off of可以写作base off, 也可以使用base on/base upon。base off美式英语中用得多一点,不那么正式(casual)。base on英式英语中用得多一点,更正式一点(formal)。

5.divide up into vs divide into

p7, The Von Neumann architecture divides the computer up into two main parts - the CPU(Central Processing Unit) and the memory。

这里的divide up into可以使用divide into代替。虽然两者意思差不多,但使用up的时候,有“至多”之意,这种用法比较普遍。

三、其它

1.为什么看这本书?

在看《Compilers: Principles, Techniques and Tools》时,里面有些跟汇编相关的内容,于是想找一些跟汇编有关的书,便发现了这本《Programming From The Ground Up》,读起来挺有意思的——比如作者说“第一遍看不懂,那就看第二遍;还是看不懂,暂且先记住它,后面再回头看”。当然,其实《Programming From The Ground Up》这本书不是介绍汇编语言的,而是已汇编语言作为示例让大家入门编程的。既然觉得有意思,那就看看吧,反正也就326页。

2.学习方法

p2, If you don't understand something the first time, reread it. If you still don't understand it, it is sometimes best to take it by faith and come back to it later. Ofter after more exposure to programming the ideas will make more sense.

四、参考资料

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)

标签:p1,into,Programming,Up,base,mode,Ground
From: https://www.cnblogs.com/codists/p/18277184

相关文章

  • 关于docker-compose up -d 出现超时情况处理
    由于要搭建一个ctf平台,用docker一键搭建是出现超时情况用了很多办法,换源,等之类的一样没办法,似乎它就是只能用官方那个一样很怪。只能用一种笨办法来处理了,一个个pull。打个比如:打开相对应docker-compose.yml文件可以看到image就是需要去下载的。那么此时你就可以通过手动指......
  • Hive 实操案例六:统计上传视频最多的用户 Top10 以及他们上传的视频观看次数在前 20 的
    一、数据表结构视频表t_video字段注释描述videoId视频唯一id(String)11位字符串uploader视频上传者(String)上传视频的用户名Stringage视频年龄(int)视频在平台上的整数天category视频类别(Array<String>)上传视频指定的视频分类length视频长度(Int)整形数字标识的视频长度vie......
  • Hive 实操案例五:统计每个类别中 Top10 的视频热度
    一、数据表结构视频表t_video字段注释描述videoId视频唯一id(String)11位字符串uploader视频上传者(String)上传视频的用户名Stringage视频年龄(int)视频在平台上的整数天category视频类别(Array<String>)上传视频指定的视频分类length视频长度(Int)整形数字标识的视频长度vie......
  • 【Python爬虫实战项目】Python爬取Top100电影榜单数据并保存csv文件(附源码)
    前言今天给大家介绍的是Python爬取Top100电影榜单数据保存csv文件,在这里给需要的小伙伴们帮助,并且给出一点小心得。开发工具Python版本:3.6相关模块:requests模块time模块parsel模块csv模块环境搭建安装Python并添加到环境变量,pip安装需要的相关模块即可。文中......
  • 七、若依--P17--P18【黑马程序员Java最新AI+若依框架项目开发新方案视频教程,基于RuoYi
    学习视频【黑马程序员Java最新AI+若依框架项目开发新方案视频教程,基于RuoYi-Vue3前后端分离版本,从前端到后端再到AI智能化应用全通关】https://www.bilibili.com/video/BV1pf421B71v/?p=6&share_source=copy_web&vd_source=3949d51b57b2891ea14d6e51c792bef6二次开发P17:新......
  • Go WaitGroup流程
    WaitGroup流程typeWaitGroupstruct{ noCopynoCopy //64-bitvalue:high32bitsarecounter,low32bitsarewaitercount. //64-bitatomicoperationsrequire64-bitalignment,but32-bit //compilersdonotensureit.Soweallocate12bytesandthe......
  • 0day 新接口-飞企互联-FE企业运营管理平台 checkGroupCode接口SQL注入漏洞
     0x01阅读须知        技术文章仅供参考,此文所提供的信息只为网络安全人员对自己所负责的网站、服务器等(包括但不限于)进行检测或维护参考,未经授权请勿利用文章中的技术资料对任何计算机系统进行入侵操作。利用此文所提供的信息而造成的直接或间接后果和损失,均由使用......
  • 解析及修复策略:关于akisp11.dll的作用与丢失问题
    akisp11.dll是一个与Akamai安全或加速技术相关的动态链接库文件,Akamai是一家提供内容分发网络(CDN)服务和云安全解决方案的公司。此DLL文件可能用于实现网页内容加速、安全浏览保护、或是与Akamai的某些安全产品和服务整合的功能,确保用户在浏览网页时的数据传输安全和性能优化。......
  • Java8 Consumer、Supplier、Predicate、Function
    今天我们还讲讲Consumer、Supplier、Predicate、Function这几个接口的用法,在Java8的用法当中,这几个接口虽然没有明目张胆的使用,但是,却是润物细无声的。为什么这么说呢?这几个接口都在java.util.function包下的,分别是Consumer(消费型)、supplier(供给型)、predicate(谓词型)、functi......
  • 20-OWASP top10--XXS跨站脚本攻击
    目录什么是xxs?XSS漏洞出现的原因XSS分类反射型XSS储存型XSSDOM型XSSXSS漏洞复现XSS的危害或能做什么?劫持用户cookie钓鱼登录XSS获取键盘记录 同源策略(1)什么是跨域(2)同源策略(3)同源策略修改(允许所有人跨域访问)XSS绕过简单的绕过方法 使用HTML进行编码绕......