Page 1 of 1

For compiling experts

PostPosted: 13 Feb 2007, 10:32
by Tony Thomas
Now is competing in CCT, and as one of its testers one of my suggestions was to get it compiled by one of the compiling experts. Talking about JA, BH, and DC of course. Now is written in pascal, any of you think that you can get a decent speed up for it if Marc Lefler send you the source code?

Thanks in advance

Tony

Re: For compiling experts

PostPosted: 15 Feb 2007, 02:06
by Bryan Hofmann
Tony Thomas wrote:Now is competing in CCT, and as one of its testers one of my suggestions was to get it compiled by one of the compiling experts. Talking about JA, BH, and DC of course. Now is written in pascal, any of you think that you can get a decent speed up for it if Marc Lefler send you the source code?

Thanks in advance

Tony


I don't even have a pascal compiler and for the most part I really don't think I could add any speed up.

Bryan

Re: For compiling experts

PostPosted: 15 Feb 2007, 04:53
by Tony Thomas
Thanks for the Reply Bryan...

Re: For compiling experts

PostPosted: 16 Feb 2007, 14:49
by mjlef
That was great fo you to ask Tony! Thanks!

Maybe I should break down and buy Delphi. I am so cheap!

Re: For compiling experts

PostPosted: 16 Feb 2007, 18:01
by Jim Ablett
Hello Mark,

I don't know what Pascal compiler you use, but 'GPC - Gnu Pascal compiler' supports all command-line options that GCC knows.

You could try these for a possible speed up >

O3 -march="CPUTYPE" -fomit-frame-pointer -fexpensive-optimizations -ffast-math -finline-function -funroll-loops


And possibly for the fastest exes compile also with PGO switch
-fprofile-generate

Run some testsuites with the exe, then recompile instead with
-fprofile-use


Jim.

Re: For compiling experts

PostPosted: 18 Feb 2007, 04:33
by Tony Thomas
mjlef wrote:That was great fo you to ask Tony! Thanks!

Maybe I should break down and buy Delphi. I am so cheap!


Haha, being cheap is good when you are in a business that doesnt help you make any money. :mrgreen:

Re: For compiling experts

PostPosted: 18 Feb 2007, 21:12
by Steve Maughan
mjlef wrote:Maybe I should break down and buy Delphi. I am so cheap!


Mark,

I thought I'd mentioned this before but the only version of Delphi you need is the free version!! Go to:

http://www.turboexplorer.com

and download Turbo Delphi. There is no advantage in buying the Professional version for the purpose that you require. The free version has all of the optimization enabled.

Best regards,

Steve