Re: array index and pointer, which is faster?
- From: Andrey Tarasevich <andreytarasevich@xxxxxxxxxxx>
- Date: Fri, 29 Feb 2008 12:04:39 -0800
Doug Miller wrote:
But IWell, take a look at the assembly code you quoted. Don't you see that it is exactly the same in both cases?
tested it, the speed is almost the same. Can anybody tell me why?
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
.
- Follow-Ups:
- Re: array index and pointer, which is faster?
- From: Xiaohan
- Re: array index and pointer, which is faster?
- References:
- array index and pointer, which is faster?
- From: Xiaohan
- Re: array index and pointer, which is faster?
- From: Andrey Tarasevich
- Re: array index and pointer, which is faster?
- From: Doug Miller
- array index and pointer, which is faster?
- Prev by Date: Re: Is there stack associated when a executing an inline function?
- Next by Date: Re: Is there stack associated when a executing an inline function?
- Previous by thread: Re: array index and pointer, which is faster?
- Next by thread: Re: array index and pointer, which is faster?
- Index(es):
Relevant Pages
|