|stack access speed firstname.lastname@example.org (2000-11-15)|
|Re: stack access speed email@example.com (david lindauer) (2000-11-16)|
|Re: stack access speed firstname.lastname@example.org (2000-11-17)|
|From:||david lindauer <email@example.com>|
|Date:||16 Nov 2000 15:00:39 -0500|
|Keywords:||GCC, code, comment|
|Posted-Date:||16 Nov 2000 15:00:39 EST|
I would get an ASM dump and compare the code GCC generates in the two
cases. Putting variables on the stack shouldn't make that much of a
difference unless GCC is calculating all the array indexes every time in
one case but not the other...
> I have programmed the following code for a small test and run it on two
> different platform as stated above.I have run the test for 100,000
> times and time it when it start and finish excuting the program.
[I looked at the code. The stack code is surprisingly bad. -John]
Return to the
Search the comp.compilers archives again.