[FFmpeg-devel] [PATCH] manually hacked configure options increase h264 decoding speed significantly
Michael Niedermayer
michaelni at gmx.at
Sat Oct 22 00:15:02 CEST 2011
On Thu, Oct 20, 2011 at 02:31:19PM +0200, madshi wrote:
> 2011/10/20 Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> > It should also need -fomit-frame-pointer, and it makes more
> > sense to just look in config.log which options were used and
> > why it failed.
>
> config.log says:
>
> # ./configure --enable-shared --disable-static --enable-pthreads --arch=x86
> --cpu=i686 --extra-cflags='-march=i686 -mfpmath=sse -mmmx -msse
> -DPTW32_STATIC_LIB'
>
> [...]
>
> BEGIN /tmp/ffconf.FxAVoQLM.c
> 1 #include <signal.h>
> 2 static void sighandler(int sig){
> 3 raise(SIGTERM);
> 4 }
> 5 int main(void){
> 6 signal(SIGILL, sighandler);
> 7 signal(SIGFPE, sighandler);
> 8 signal(SIGSEGV, sighandler);
> 9 #ifdef SIGBUS
> 10 signal(SIGBUS, sighandler);
> 11 #endif
> 12 { volatile int i=0;
> 13 __asm__ volatile (
> 14 "xorl %%ebp, %%ebp"
> 15 ::: "%ebp");
> 16 return i; }
> 17 }
> END /tmp/ffconf.FxAVoQLM.c
> gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -U__STRICT_ANSI__ -march=i686 -mfpmath=sse -mmmx -msse -DPTW32_STATIC_LIB
> -march=i686 -std=c99 -fno-common -fomit-frame-pointer -c -o
> /tmp/ffconf.mjvtCbzL.o /tmp/ffconf.FxAVoQLM.c
> C:/DOKUME~1/LOKALE~1/LOKALE~1/Temp/ffconf.FxAVoQLM.c: In function 'main':
> C:/DOKUME~1/LOKALE~1/LOKALE~1/Temp/ffconf.FxAVoQLM.c:17:1: error: bp cannot
> be used in asm here
> check_asm ebx_available ""::"b"(0)
>
> Do I have to call "configure" with -O3 and -fomit-frame-pointer
> to get a chance to have EBP automatically activated? If I try
> to do that, I'm getting this:
>
> configure --enable-shared --disable-static --enable-pthreads --arch=x86
> --cpu=i686 --extra-cflags='-o3 -fomit-frame-pointer -march=i686 -mfpmath=sse
> -mmmx -msse -DPTW32_STATIC_LIB'
>
> "ERROR: MinGW runtime version must be >= 3.15."
please try attached patch and check if it enables ebp
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Old school: Use the lowest level language in which you can solve the problem
conveniently.
New school: Use the highest level language in which the latest supercomputer
can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-configure-move-code-out-of-main-of-check_exec_crash.patch
Type: text/x-patch
Size: 820 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111022/5a704358/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111022/5a704358/attachment.asc>
More information about the ffmpeg-devel
mailing list