Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: My solution in 43 lines

Author: Anthony Cozzie

Date: 07:50:23 02/23/05

Go up one level in this thread


On February 23, 2005 at 07:36:02, Mathieu Pagé wrote:

>On February 22, 2005 at 15:27:40, Scott Gasch wrote:
>
>>On February 22, 2005 at 11:49:19, Mathieu Pagé wrote:
>>
>>>As I thought it really do look ugly due to line breaks, so i've posted it to my
>>>web site in an html form.
>>>
>>>look at : http://mathmoi.no-ip.com/tmp/nN.html
>>>
>>>Mathieu P.
>>
>>[ scott@wannabe:~/tmp ] % g++34 -O -S baz.c ; wc -l baz.s
>>    1587 baz.s
>
>huh ?
>
>What does that mean ?

He compiled with -S, which makes gcc generate assembly, and then counted the
lines with wc.  That is not an actual instruction count, but it gives an idea of
the real (machine) complexity.  After all, C doesn't specify whitespace, so I
could just put everything in a row and have a "1 line" program.

anthony



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.