Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: assembly--not really that fast

Author: Severi Salminen

Date: 08:14:50 01/14/02

Go up one level in this thread


>#1. a=b; c=d;
>
>The compiler will output something like:
>
>mov  EAX,b
>mov  a,EAX
>mov  EAX,d
>mov  c,EAX
>
>Wheras it should generate:
>
>mov  EAX,b
>mov  EBX,d
>mov  a,EAX
>mov  c,EBX

Are you checking this in debug mode (where you can't use optimizations)? Or
really the optimized version. In Visual C++ 6.0 you can't see the code output in
"optimize for speed" releases. I say this because I've also seen very strange
(slow...) code generated when optimization is not enabled.

Severi



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.