From: D DOT J DOT Eleveld AT anest DOT azg DOT nl Newsgroups: comp.os.msdos.djgpp Subject: Re: How safe is the -march=pentium flag? Date: Mon, 10 Aug 1998 19:19:58 GMT Organization: Deja News - The Leader in Internet Discussion Lines: 26 Message-ID: <6qnh4u$db4$1@nnrp1.dejanews.com> References: NNTP-Posting-Host: 192.87.23.66 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article , Eli Zaretskii wrote: > > On Mon, 10 Aug 1998 D DOT J DOT Eleveld AT anest DOT azg DOT nl wrote: > > > I've just been playing with the -march flags and found a huge speed increase > > when I used -march=pentuim. > > How huge is ``huge''? Can you give some numbers? Ok, I was playing with optimizing the inner loops of the AllegPeg Mpeg player library for Allegro. I do my profiling stuff with some pentium-specific code that counts clock cycles. With -march=pentium I get 27.7M clock cycles per frame with my Pentiun 133 with painfully slow (banked) video card. Exactly the same flags and code (just changed the compiler options in Rhide, and rebuilt) gets me 32.6M clock cycles per frame. There are quite a few small loops there so memory alignment will probably be crucial. Is this expected, or maybe semi-normal? Thanks, Doug Eleveld -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum