Re: array index and pointer, which is faster?



Doug Miller wrote:
But I
tested it, the speed is almost the same. Can anybody tell me why?
Well, take a look at the assembly code you quoted. Don't you see that it is exactly the same in both cases?

Well, *I* certainly don't see that, and you probably won't either if you look at it again... :-)

Yeah, I missed the difference somehow... Still I'd stay that in this case the chances to end up with the same machine code are pretty high with a modern compiler.

--
Best regards,
Andrey Tarasevich
.



Relevant Pages

  • Re: Inline assembly in ARM
    ... Create an assembly code file and put your assembly code in it within ... BSP for WindowsCE 5.0 and try to build,its throwing error saying that ... But when i create a hello world console project in the same ... Any suggestion in this regards will be really helpful ... ...
    (microsoft.public.windowsce.platbuilder)
  • Re: functional languages with inline Intel ASM?
    ... > The fact that it compiles to ... > Best regards, ... a functional language? ... If you can write functional assembly code, try doing so using MS-DOS's Debug ...
    (comp.lang.asm.x86)
  • Cant debug Win32 app?
    ... When I set breakpoint to win32 app, it always show assembly code, even ... I still can't debug the c code.. ... Best regards, ...
    (microsoft.public.vc.ide_general)