Conversely, if your program has a fault (for example, using a bad pointer) at some location in memory, you can look for the source line that is closest to the memory address.
相反,如果您的程序在内存中某个位置存在错误(例如,使用了一个错误指针),那么可以查找最接近该内存地址的源代码行。
Where exactly does namestr get written with another address value, and thereby lose the last pointer to memory allocated in main(), causing the leak?
在什么地方namestr与其它地址数值一起被编写,从而丢失分配在main() 中的最后一个内存指针,最终导致渗漏吗?
The earlier example was watching the memory that held the namestr pointer itself; therefore, the address of the watched area is given by &namestr.
先前的例子是关注支持namestr指针本身的内存;因此这个被关注区域是由 &namestr 提供的。
The main SPE program will receive an effective address pointer to a struct containing the size and pointer of a string in main memory.
主s PE程序将接收到包含字符串大小和指针的struct的有效地址指针。
In that case, the contents of pointer gonzo - a 4-byte memory address - live in the data segment. The actual string it points to does not, however.
在这个示例中,指针在数据段中占用了4个字节,但是指针所指向的字符串则不在数据段中。
The system call is invoked with two arguments: a long integer containing the amount of memory to allocate and a long integer pointer to store the returned address.
这个系统调用要求两个参数:一个包含要分配内存数量的长整数,还有一个存储返回的地址的长整数指针。
Under most compilers, if we use an uninitialized pointer the effect will be to use whatever bits are in the memory in which the pointer resides as if it were an address.
对大多数的编译器来说,如果使用未初始化的指针,会将指针中存放的不确定值视为地址,然后操纵该内存地址中存放的位内容。
Whenever an instruction is fetched from memory, the instruction pointer is translated via the instruction TLB into a physical address.
无论何时从内存中取一个指令,指令指针都会经指令tlb的翻译后指向物理地址。
Well, it turns out on most computers an address of the location and memory, aka a pointer, is itself 32 bits.
好的,它是一个计算机内存地址,或者说一个指针,占32位。
When a long string variable is assigned a string constant, the string pointer is assigned the address of the memory block generated for the string constant.
当一个串变量被赋予一个串常量时,串指针被赋予串常量内存块的地址。
Think what will happen when the object holds a pointer to some address in the memory.
想想如果对象中包含了指向地址的指针会发生什么。
Think what will happen when the object holds a pointer to some address in the memory.
想想如果对象中包含了指向地址的指针会发生什么。
应用推荐