• You double click an icon, the program gets loaded into memory, well, conceptually where does your program end up?

    双击一个图标,程序就被加载到内存中,那么,程序在哪里结束?

    哈佛公开课 - 计算机科学课程节选

  • Why not write the program in a way where you figure out dynamically when the program is run how much memory you need rather than hard coding in two with or within that constant.

    为什么不写一个可以动态的方式写那个程序,程序可以动态分配内存,而不是用常量硬编码两个值。

    哈佛公开课 - 计算机科学课程节选

  • And if the test is true, it will change the value of this program counter to point to some other place in the memory, some other point in that sequence of instructions, and you'll keep processing.

    如果测试结果为真,它会改变程序计数器的结果去,指向记忆存储器里的其他地方,指令序列里的其他地方,然后你会继续这个过程。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And one of the ways you can make a program crash, intentionally or not, is to essentially use up too much memory or call too many functions and what happens is, bam, one hits the other and bad things happen.

    其中一个方式能使你的程序崩溃掉,有意或无意的,它本质上使用了太多的内存,或者调用了太多的函数,所发生的,崩掉,一个冲突了另一个,然后发生了坏事情。

    哈佛公开课 - 计算机科学课程节选

  • You can touch almost any part of memory in the computer systems that you want with your program, but do you want to?

    通过你的程序,你可以触及到计算机系统,内存的任意部分,但是那是你想要的吗?

    哈佛公开课 - 计算机科学课程节选

  • Well, there's a chunk of memory called the heap that you can grab as much memory as you want so long as it exists for your program.

    好的,这里有一块叫做堆的内存,这样你就可以获得你想要那么多的内存,因为它为你的程序而存在。

    哈佛公开课 - 计算机科学课程节选

  • That program counter points to some location in memory typically to the first instruction in the sequence.

    程序计数器指示存储器当中的某些位置,尤其是指示序列中的第一个指令。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • I can certainly try to write the number 13 there, but bam, my program very likely will crash if this chunk of memory was not given to me previously by the operating system and maybe it is owned by the operating system.

    我当然可以在那里写下数字13,但是“嘣“,如果这块内存不是系统预先给我的,我的程序很可能会崩溃,可能这块内存,是系统本身使用的。

    哈佛公开课 - 计算机科学课程节选

  • So now let me recreate this program from memory.

    现在我们在脑子里再过一遍这个程序。

    哈佛公开课 - 计算机科学课程节选

  • Only the operating system has controlling of byte zero NULL in the computer's RAM and so if a function ever returns null, aka zero, well, something must have gone wrong because that can't possibly belong to me that memory because by human convention zero is owned by the operating system; not by a program I wrote.

    只用操作系统在内存中能够控制,字节0,并且如果一个函数返回,或者说0,好的,可能出错了,因为那可能是不属于我的内存,因为惯例上,0是由操作系统拥有的,而不是由我的程序拥有的。

    哈佛公开课 - 计算机科学课程节选

  • Now get int *y so now I'll use the board for things I can't really draw very well with the keyboard so what does the memory of my program look like at the moment?

    现在,=,int,*y,现在我使用黑板,我用键盘画的不是很好,那么此刻,我程序中的内存看起来像什么?

    哈佛公开课 - 计算机科学课程节选

  • Almost everyone in this room has probably had a segfault at some point or core dump where you end up with this random file called core, which recall is just the contents of memory at the time your program crashed.

    几乎这个教室里的所有人,在某个时候,都遇到过段错误,或者通过这个core文件的,存储器内核更新,这就是你的内存出现错误,你的程序崩溃掉了。

    哈佛公开课 - 计算机科学课程节选

  • skittles So when you compile a program called A dot out, or skittles or wherever, and you double-click that program, or our in our command line environment, run it with dot slash skittles, that program is loaded Microsoft Word into memory just like Microsoft Word or whatever would be on your own computer.

    当你编译一个程序a,out,或者,或其他的,你双击那个程序,或着在我们的命令环境中,采用,/skittles来运行它,那个程序被加载到,内存中,就像,或者你电脑上的其他程序。

    哈佛公开课 - 计算机科学课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定