Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Chinese chess ?

Author: Russell Reagan

Date: 12:52:02 07/05/02

Go up one level in this thread


On July 05, 2002 at 10:42:56, Dann Corbit wrote:

>For instance, here is a simple C program to calculate the towers of Hanoi:
[...]
>This is the same thing in assembly langauge (generated by the compiler):
[...]

Why is it that ASM generated from a C++ program is largely unreadable and
actually larger itself? For example, if I write a simple program, and I name the
file whatever.c, the compiler compiles it as a C program and the ASM that is
generated is readable and (if I knew more about ASM) I would be able to tell
what was going on. If I rename that same program's source file to whatever.cpp,
the ASM is suddenly littered with a lot of @ signs and underscores and lots of
other garbage. I don't see why it should be any different for renaming a file
from .c to .cpp when the source code is exactly the same.

Russell



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.