今日要点:
- 嵌入式中Debuger和Breakpoint的定义
- 如何避免动名词或动词不定式做主语时导致头重脚轻现象
Debugger(除错器)
A software development tool used to test and debug embedded software. The debugger runs on a host computer and connects to the target through a serial port or network connection. Using a debugger you can download software to the target for immediate execution. You can also set breakpoints and examine the contents of specific memory locations and registers.
一个软件开发工具,被用来对嵌入式软件进行测试和除错。除错器在宿主机上运行并且通过串口或网络连接到目标机上。你能使用除错器下载软件到目标机并直接运行。你也可以设置断点并检查特定内存地址或寄存器的内容。
Breakpoint (断点)
A location in a program at which execution is to be stopped and control of the processor switched to the debugger. Mechanisms for creating and removing breakpoints are provided by most debugging tools.
一个在程序中的地址,在那里程序的执行被停止,并且处理器的控制转换到了除错程序。大多数除错工具提供增加与删除一个断点的机制。
今日语法小知识:
上一篇中我们讲了动名词和动词不定式做主语及区别。
-
但是这样子往往会形成主语太长现象,导致英语句子头重脚轻的现象。
-
为了避免这种现象,往往用代词it做形式主语,置于句首,而将真正的主语(动名词或动词不定式)移动至句尾。
-
动名词移到句尾时,通常改为动词不定式。
例如上一篇的两个例句改成形式主语方式如下:
1. Listerning to music makes me happy.
改为形式主语方式,动名词变为动词不定式(大部分情况下,但是不是绝对的,还有一些特殊情况):
It makes me happy to listen to music.
其中 It 为形式主语,而真正的主语是to listen to music
2. To go to American for a visit is my plan for this year.
改为形式主语如下:
It is my plan for this year to go to American for a visit.
网友评论