I've been using the blackboard a little ad hoc here, but suppose I neaten things up here now and present this rectangle is let's say R RAM, the memory inside of your computer.
我在这里特别地使用这块黑板,假如我整理这些东西,把它们呈现,这个长方形,假如说就是内存,你电脑的内存。
Again, for those-- for whom this is blocked, I'm just dividing the rectangle into smaller squares which is to say that memory is addressable.
这是一整块的,我只是把它划分成一个个小区域,每个小区域都可以设定一个地址。
And that work is the area inside the rectangle.
但是对外做了功。
And in the ancient world, the reason for this was that this very small rectangle--;it's about 150 miles long and 70 miles wide, about the size of Rhode Island--this very small rectangle lies on the way to anywhere worth going in the Ancient Near East.
在古代,战争的原因是,这小块矩形,长150公里,宽70公里,与罗德岛大小相当,这小块矩形处于要道,这条路通向古代近东的任何地区。
Well, memory is this rectangle, by default, they're located at the bottom.
好的,内存是这个长方形,默认的,它们位于底端。
So that means if you-- whether you own a Mac, PC or whatever, you have a whole chunk of RAM memory which you can draw for instance as a rectangle, if you can't quite see.
也就是说,无论你的电脑是Mac也好,PC也好或其他什么的,你会有厚厚一块RAM存储器,我们可以把它画成长方形,你们有可能看不到。
And, again, the rectangle represents your computer's RAM, the bottom represents the part of RAM that we generally call the stack, main conceptually ends up on the bottom of the stack followed foo by its local variables then the function say foo that it calls and on and on and on and up, but there is, in fact, something above all of this and we've seen this picture briefly and that's this thing called the heap.
再次,矩形表示的是计算机内存,底端表示内存的一部分,通常我们把它叫做堆栈,main函数在,堆栈的底端,之后是,它的局部变量,然后是它调用的函数,等等等等,但是那里有,实际上,在这个上面,我们粗略看看这个图画,这个东西叫做堆。
应用推荐