www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/05/06/17:40:55

From: Alex Shnitman <alexsh AT hectic DOT net>
MIME-Version: 1.0
Date: Fri, 7 May 1999 00:37:45 +0300 (IDT)
To: Marc Lehmann <pcg AT goof DOT com>
Cc: pgcc AT delorie DOT com
Subject: Re: pgcc problem with AMD K6
In-Reply-To: <19990506230451.D20732@cerebro.laendle>
References: <14129 DOT 63360 DOT 491937 DOT 17038 AT hectic DOT hectic DOT net>
<19990506230451 DOT D20732 AT cerebro DOT laendle>
X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid
Message-ID: <14130.2529.79466.367962@hectic.hectic.net>
Reply-To: pgcc AT delorie DOT com
X-Mailing-List: pgcc AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Marc Lehmann writes:

 > > I compiled a program with the -mk6 flag (why was that changed from
 > > -mamdk6, by the way?),
 > 
 > Because egcs added these switches as -mk6. The rationale was that no -m
 > option includes the vendor name (-mintelpentium?).

Oh, I didn't know that. It makes sense. Thanks for the clarification.

 > > Then I compiled it with -mk6 -march=i486, and it didn't degfault
 > 
 > Interesting. Are you sure? I ask because you seem to infer from your
 > example that the amdk6 is counted as a i486 architecture, which you can't
 > (since then there shouldn't be a difference between both options).

I'm sure. I'll tell you the exact flow of events. I compiled it with
-mk6. It segfaulted. I compiled it with -mk6 -march=i486. It worked. I 
inferred that -mk6 uses -march=pentium by default. So I compiled with
-mk6 -march=pentium and it segfaulted again, which I took as a proof
to my assumption.

Am I misunderstanding something?

 > > Why does the K6 qualify as i486 architecture? It's supposed to be
 > > totally Pentium-compatible, isn't it?
 > 
 > The pentium, the i486 and the amdk6 share the same instruction set
 > architecture (with regards to a compiler). Both pentium and amdk6 use the
 > same instructions (i.e. -march=i486)

So what uses -march=pentium?

 > > The program I was trying to compile is he L.A.M.E. MP3 encoder. I don't
 > > know what else to attach to you; do you want an strace log, or ltrace
 > > log, or anything else? Maybe someone had this problem already?
 > 
 > an url where I can fetch that program (and te version numebr you used)
 > would be perfect unless you know the file that is responsible.

You have to download a source archive and a patch (a patched source
can't be distributed because of patents on mp3 encoding). The source
archive (the ISO sample code) is at http://geek.rcc.se/mp3encoder/ ,
there are many links to mirrors there. The patch (and patching
instructions) are at http://www.uq.net.au/~zzmcheng/lame/download.html .

Thanks for the quick response!


-- 
Alex Shnitman                            | http://www.debian.org
alexsh AT hectic DOT net, alexsh AT linux DOT org DOT il   +-----------------------  
http://alexsh.hectic.net    UIN 188956    PGP key on web page
       E1 F2 7B 6C A0 31 80 28  63 B8 02 BA 65 C7 8B BA

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019