Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Various compiler questions

Author: David Rasmussen

Date: 14:53:39 01/14/02

Go up one level in this thread


On January 14, 2002 at 17:30:36, James Robertson wrote:

>
>Ok, this is helpful. Here is another question that might help me. If I write a
>piece of C code, is there any way (under Linux) to see what the compiler
>generates for that code?
>

Using gcc, you can say

gcc -S (or -s?) -O3 whatever.cpp

or whatever and it will generate a file called whatever.s, which is the
assembler output.

/David



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.