Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: assembly--not really that fast

Author: Severi Salminen

Date: 10:44:59 01/14/02

Go up one level in this thread



>int a, b, c, d;
>
>void foo (void)
>{
>	a = b; c = d;
>}
>
>---- File c1.asm (compiled with "cl /Ox /Fa c1.c")
>
>[Some assembly stuff deleted]
>
>_foo	PROC NEAR
>; File c:\repro\c1.c
>; Line 5
>	mov	eax, DWORD PTR _b
>	mov	ecx, DWORD PTR _d
>	mov	DWORD PTR _a, eax
>	mov	DWORD PTR _c, ecx
>; Line 6
>	ret	0
>_foo	ENDP


This is what I also thought, using optimization the compiler knows how to use
pipes and scheduling properly. Using debug-mode will produce more readable but
also slower code. What is the easiest way to see asm output (using VC++ 6.0)
using optimization? In debug mode I can see assembly output and let VC "comment"
it with C lines but how about with optimization?

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.