From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.67) (envelope-from <gentoo-user+bounces-67431-garchives=archives.gentoo.org@gentoo.org>) id 1IGiPR-0002YY-I0 for garchives@archives.gentoo.org; Thu, 02 Aug 2007 21:40:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l72LcnA2004120; Thu, 2 Aug 2007 21:38:49 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l72LXxdF031053 for <gentoo-user@lists.gentoo.org>; Thu, 2 Aug 2007 21:34:00 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 95A5265281 for <gentoo-user@lists.gentoo.org>; Thu, 2 Aug 2007 21:33:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -0.202 X-Spam-Level: X-Spam-Status: No, score=-0.202 required=5.5 tests=[AWL=-0.203, BAYES_50=0.001] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lrN5P0f5g5JV for <gentoo-user@lists.gentoo.org>; Thu, 2 Aug 2007 21:33:55 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 00EF96541E for <gentoo-user@gentoo.org>; Thu, 2 Aug 2007 21:33:53 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IGiIh-00053c-7l for gentoo-user@gentoo.org; Thu, 02 Aug 2007 23:33:43 +0200 Received: from 84-72-80-14.dclient.hispeed.ch ([84.72.80.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <gentoo-user@gentoo.org>; Thu, 02 Aug 2007 23:33:43 +0200 Received: from listen by 84-72-80-14.dclient.hispeed.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <gentoo-user@gentoo.org>; Thu, 02 Aug 2007 23:33:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Alexander Skwar <listen@alexander.skwar.name> Subject: [gentoo-user] Re: Cannot compile texinfo: Illegal instruction -> Wrong -march and -mtune flags? Date: Thu, 02 Aug 2007 23:36:28 +0200 Organization: =?UTF-8?B?LsK3Lg==?= Message-ID: <10988999.8Y4yEoeYLD@m-id.message-center.info> References: <1205610.xdjbvpcjkU@m-id.message-center.info> <3856879.J0vvYLgCv5@m-id.message-center.info> <3328327.VC88d9qSBA@m-id.message-center.info> <200708022231.30086.f.philipp@addcom.de> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 84-72-80-14.dclient.hispeed.ch User-Agent: KNode/0.10.4 Sender: news <news@sea.gmane.org> Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id l72LcnAM004120 X-Archives-Salt: 90f26bc5-4d6d-4994-ae2a-731c62b4c4d8 X-Archives-Hash: 80d3482cc37d05f0fc12bb4c56a00341 =C2=B7 Florian Philipp <f.philipp@addcom.de>: > You see, they are not compatible and even if some code works I wouldn't= bet=20 > multimedia apps will perform well. >=20 > With -mtune the instruction set stays the same. It is just "rearranged". Hm. Allright. When using just -mtune (ie. without -march), the docs at http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/i386-and-x86_002d64-O= ptions.html say: | While picking a specific cpu-type will schedule things appropriately | for that particular chip, the compiler will not generate any code that | does not run on the i386 without the -march=3Dcpu-type option being use= d. =20 If -mtune=3Dathlon-xp is used, code is generated which may make use of 3dNOW!. 3dNOW! is, of course, not to be found on 386 :) If the instruction set stays the same, code generated with -mtune=3Dathlon-xp would not be executable on 386 machines, if I understand you correctly. Hm. With -mtune, the set of available instructions (ie. stuff like 3dNOW!, I suppose?) is NOT changed from the default of i386, is it? Or what does "Tune to cpu-type everything applicable about the generated code, except for the ABI and the set of available instructions." mean - especially note the "except for [...] the set of=20 available instructions" part. So with "-mtune=3Dpentium-m -march=3Dathlon-xp" I'm making the compiler generate code which is "ordered" the way it's best for pentium-m machines while allowing it to use athlon-xp instruction set? Is that what I'm doing? If so, then it seems you're right - code will run, but maybe not so well. Is that understanding correct? If so, then I really should think twice about using "-mtune=3Dpentium-m -march=3Dathlon-xp", shouldn't I? Curious, Alexander Skwar --=20 No matter how many resources you have, it is never enough.=20 -- Murphy's Computer Laws n=B01 --=20 gentoo-user@gentoo.org mailing list