[FFmpeg-devel] manually hacked configure options increase h264 decoding speed significantly

Michael Niedermayer michaelni at gmx.at
Thu Oct 20 14:05:40 CEST 2011


On Thu, Oct 20, 2011 at 01:27:00PM +0200, madshi wrote:
> 2011/10/20 Michael Niedermayer <michaelni at gmx.at>
> 
> > for the configure side, it just tries to compile, link and run:
> >    (this needs -O3)
> >
> > #include <signal.h>
> > static void sighandler(int sig){
> >    raise(SIGTERM);
> > }
> > int main(void){
> >    signal(SIGILL, sighandler);
> >    signal(SIGFPE, sighandler);
> >    signal(SIGSEGV, sighandler);
> > #ifdef SIGBUS
> >    signal(SIGBUS, sighandler);
> > #endif
> >    {
> >    volatile int i=0;
> >    __asm__ volatile (
> >        "xorl %%ebp, %%ebp"
> >    ::: "%ebp");
> >    return i;
> >     }
> > }
> >
> 
> I've simply added that code to one of the C files
> and tried to compile it. I'm getting this complaint:
> 
> "error: bp cannot be used in asm here"

did you use -O3 ?

[...]
--
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- 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/20111020/56c97ed5/attachment.asc>


More information about the ffmpeg-devel mailing list