Author Topic: x264 system independent CPU instruction sets  (Read 620 times)

Offline genesis

  • Member
  • Posts: 4
    • View Profile
x264 system independent CPU instruction sets
« on: July 31, 2012, 08:17:41 AM »
Hi everyone;

I'm trying to compile a version of x264 in a way such as it uses the yasm assembler, but system independent.. Is this even possible? I don't have a lot of knowledge about assemblers so this might be a silly questions to the pros.

My CPU has amd64 arch, so when I configure & make x264, it uses the amd64 flag. And when i try to incorporate the static library into my application (64-bit), it will use the CPU optimization instruction sets such as sse, mmx, ssse3 etc. But I'm trying to generate an executable that would work on most CPUs (including 32 bits systems), so how should I go about configuring the assembler and x264 so that it will see the instruction sets regardless of the system arch?

Thanks a lot!

Offline J_Darnley

  • Global Moderator
  • Member
  • *****
  • Posts: 397
    • View Profile
Re: x264 system independent CPU instruction sets
« Reply #1 on: July 31, 2012, 12:57:56 PM »
If you want x264 to run on both x86 and x86-64 systems then you will need to compile it for x86.  As for the SIMD options they are all chosen at runtime with only MMX2 and SSE being mandatory.  Since those are present on all useful systems what exactly are the problems you are having?  Can you not get your build system to give you x86?  If so then what are you using?
Knowledgeable about: cmd.exe, ffmpeg, x264