Re: stack access speed

david lindauer <>
16 Nov 2000 15:00:39 -0500

          From comp.compilers

Related articles
stack access speed (2000-11-15)
Re: stack access speed (david lindauer) (2000-11-16)
Re: stack access speed (2000-11-17)
| List of all articles for this month |

From: david lindauer <>
Newsgroups: comp.compilers
Date: 16 Nov 2000 15:00:39 -0500
Organization: Compilers Central
References: 00-11-113
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...

David wrote:
> 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]

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.