Mark Powell schrieb am Don, 28 Sep 2000:
> On Wed, 27 Sep 2000, Robert Hegemann wrote:
> 
> >     On my Linux Box with a Pentium 166 MMX the MMX and non-MMX
> >     version produce bit identical results.
> 
> How did you get the Linux version to assemble the MMX code? I've had no
> luck with GNU as v2.10.0 under FreeBSD. I'm obviously missing something?

        Yes, you need NASM, the Netwide Assembler

        NASM = nasm
        ASFLAGS=-f elf -i i386/
        %.o: %.nas
                $(NASM) $(ASFLAGS) $< -o $@
        %.o: %.s
                gcc -c $< -o $@

        and you'll have to uncomment the following

        ## use MMX extension. you need nasm and MMX supported CPU.
        CC_SWITCHES += -DMMX_choose_table
        OBJ += i386/choose_table.o


> BTW The gcc 2.95.2 options are perfectly valid for FreeBSD as well as
> Linux. Obviously :) Can they be copied into the FBSD section too?
> 
> -----
> ##########################################################################
> # FreeBSD
> ##########################################################################
> ifeq ($(UNAME),FreeBSD)
> #  some alternate code (work in progress [EMAIL PROTECTED])
> #  CPP_OPTS += -DRH_AMP -DRH_VALIDATE_MS
> # these options for gcc-2.95.2 to produce fast code
> #   CC_OPTS = \
> #       -Wall -O9 -fomit-frame-pointer -march=pentium \
> #       -finline-functions -fexpensive-optimizations \
> #       -funroll-loops -funroll-all-loops -pipe -fschedule-insns2 \
> #       -fstrength-reduce \
> #       -malign-double -mfancy-math-387 -ffast-math 
> endif
> -----
> 
> Mark Powell - UNIX System Administrator - The University of Salford
> Academic Information Services, Clifford Whitworth Building,
> Salford University, Manchester, M5 4WT, UK.
> Tel: +44 161 295 5936  Fax: +44 161 295 5888  www.pgp.com for PGP key


        Ciao Robert


--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to