2008年4月16日
摘要: Array & Pointer Are they equivalent?Consider the following two pieces of code:int *p;...c = p[1];int p[10];...c = p[1];Are they equivalent? If not, which is faster? The answer is here:Disassembled for c = p[1]:mov eax,dword ptr[p]mov ecx,dword ptr[eax+4]mov dword ptr[c],ecxDisassembled for c = p 阅读全文
posted @ 2008-04-16 22:05 sun_kang 阅读(240) 评论(0) 推荐(0) 编辑