[x264-devel] Compiling x264 with Visual Studio 2010 and Intel compiler

BugMaster BugMaster at narod.ru
Wed Dec 10 18:07:25 CET 2014


On Wed, 10 Dec 2014 12:54:52 +0100, Kovacs Peter wrote:
> Changing line 1063 of configure from
> CFLAGS="-O1 -g $CFLAGS"
> to
> CFLAGS="-Od -g $CFLAGS"
> to completely disable optimizations of icl makes it perfect. (-O0 does
> not work in icl version 15 on windows, see 
> http://en.wikipedia.org/wiki/Intel_C%2B%2B_Compiler#Flags_and_manuals)

> Thanks for your help,
> Peter

-O1 flag is used because it the minimal most portable optimization
level between different compilers. Also some compilers fail to compile
inline asm in common/x86/util.h with -O0 (gcc) or -Od (ICL)
optimization levels (problem with registers allocation).
But if you really want to change it you can do this without configure
modification by overriding it by configure --extra-cflags="<flags>"
option.



More information about the x264-devel mailing list