From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Furness Subject: Optimizing a compiler? Date: 21 Oct 2002 16:20:35 +0100 Sender: linux-admin-owner@vger.kernel.org Message-ID: <1035213635.6421.74.camel@zebra.vil.ite.mee.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org Sorry, this might be a little bit OT, but can anyone point me at some useful info about how to compile code so that it uses the best speed features of a given type of CPU? I know that I can recompile the _kernel_ for and Athlon processor or an intel P4 etc, but how do I optimize my own code which has nothing to do with the kernel? Do I need to change the code itself, or can I give gcc (in this case g++) some options that tell it to use the best possible number crunching code for my Athlon servers? We're doing some research into video pattern recognition, so need to get the absolute maximum possible number munching from our servers as a single run take us at least 18 hours; every saved clock cycle adds up. Thanks. Paul. -- Paul Furness Systems Manager 2+2=5 for extremely large values of 2.