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-67436-garchives=archives.gentoo.org@gentoo.org>) id 1IGlj6-0008Rq-6v for garchives@archives.gentoo.org; Fri, 03 Aug 2007 01:13:12 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l731BJt6015882; Fri, 3 Aug 2007 01:11:19 GMT Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l7316H9k010069 for <gentoo-user@lists.gentoo.org>; Fri, 3 Aug 2007 01:06:18 GMT Received: by py-out-1112.google.com with SMTP id d32so1363074pye for <gentoo-user@lists.gentoo.org>; Thu, 02 Aug 2007 18:06:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RC/WWrJkrA3EVOtZPVqlKaO92GF3bTw8sIZsRvHmBsqM9ew+4Q/eVEU4drroh6rMr9tQjszs85FZI5xUOAooWO2eK4f+BGifBq67FiDwMk7z2az611usNUpOW34QfINpwsMo+XiYjXB4sF3MRl0z1BMtY56c5OqmhVahD5TiI84= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BfhMcpxavcxOA+n/4JouKJLev7Dw9A3Wq3hnr7Jd6R9JKj5EgfkZoHK1Q2nieNbQjMvdhV6ZZrfny0SsbjBF+rWeKUqTnDcVKRe6lud4C9kfy17RTovBoM45D4MT1KaSYrWMwrH48MJfrAFMFPA3udzpMxT8ZHhwBzILnZFt+94= Received: by 10.64.251.9 with SMTP id y9mr4205144qbh.1186103176320; Thu, 02 Aug 2007 18:06:16 -0700 (PDT) Received: by 10.65.220.4 with HTTP; Thu, 2 Aug 2007 18:06:16 -0700 (PDT) Message-ID: <342e1090708021806h46eaa6cbodce8ad37d39f80fb@mail.gmail.com> Date: Thu, 2 Aug 2007 22:06:16 -0300 From: "Daniel da Veiga" <danieldaveiga@gmail.com> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Cannot compile texinfo: Illegal instruction -> Wrong -march and -mtune flags? In-Reply-To: <200708030007.53311.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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1205610.xdjbvpcjkU@m-id.message-center.info> <200708022231.30086.f.philipp@addcom.de> <10988999.8Y4yEoeYLD@m-id.message-center.info> <200708030007.53311.f.philipp@addcom.de> X-Archives-Salt: 5394399f-eb08-462f-805a-9ae044722a3d X-Archives-Hash: e76c5905550dd95d5490fd01b41d8d66 On 8/2/07, Florian Philipp <f.philipp@addcom.de> wrote: > Am Donnerstag 02 August 2007 23:36 schrieb Alexander Skwar: > > =B7 Florian Philipp <f.philipp@addcom.de>: > > > You see, they are not compatible and even if some code works I wouldn= 't > > > bet multimedia apps will perform well. > > > > > > With -mtune the instruction set stays the same. It is just "rearrange= d". > > > > 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-Options= .htm > >l > > > > say: > > | While picking a specific cpu-type will schedule things appropriately > > | for that particular chip, the compiler will not generate any code tha= t > > | does not run on the i386 without the -march=3Dcpu-type option being u= sed. > > > > 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 > > 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 > > -- > > At least that's how I understand the issue. At the moment I've got two id= eas > to solve your problem: > > 1. set march to an inferior target (pentium-3 and pentium-3m seem okay: m= mx > and sse) and mtune for one (or even both?) of them > 2. set march to one of them and disable incompatible instruction sets wit= h > options like -mno-sse2 or -mno-3dnow > > Isn't the -march=3Di686 valid? I guess that would be the most "compatible" option for binaries that will run on AMD and Intel processors... Or simply use no "-march" setting, only "-mtune"... I did that recently to switch a whole system from an Athlon XP to a Intel Core Duo... --=20 Daniel da Veiga Computer Operator - RS - Brazil -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ ------END GEEK CODE BLOCK------ -- gentoo-user@gentoo.org mailing list