Computer Chess Club Archives


Search

Terms

Messages

Subject: Code generation

Author: Russell Reagan

Date: 14:56:57 01/22/02


I'm trying to look at the ASM code that my program generates, but I'm having a
bit of a problem. I'm using MSVC++. If I compile and link in Debug mode, it
works fine. I can debug my program and view the C/C++ source code, and right
below it is the ASM code that is generated, but it's not optimized, which
doesn't do a whole lot of good because when I compile my program for actual
play, it will be in release mode. I've heard estimates that programs run up to
3x faster when compiled in release mode vs. debug mode. Anyhow, when I debug in
release mode, there are no C/C++ statements, only ASM. That doesn't do me much
good since I have no idea where in my program I am. There are probably some of
you ASM experts out there who could look at that and figure out what's going on,
but not I. So it appears that the only way to view the C/C++ with ASM is in
debug mode and that isn't very helpful at all. So is there another way? Someone
in another post suggested trying -S as a compiler option, but when I tried that
I got the error that it was an unknown compiler option. /S and /s gave the same
unknown compiler option error.

Any help is appreciated.

Russell



This page took 0.01 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.