Posted: Tue Aug 30, 2005 4:52 pm
How to create the exe that chooses the right one in PureBasic without ASM-Knowledge?
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
compilerif #Compiler_SSE
procedure MyFunction()
;sse code
endprocedure
compilerelseif #Compiler_MMX
procedure myfunction()
;same function but using mmx
endprocedure
compilerendifCode: Select all
compilerif #Compiler_SSE
runprogram("bin/MyGame_sse")
compilerelseif #Compiler_3DNOW!
runprogram("bin/MyGame_3dnow!")
compilerelse
runprogram("bin/MyGame_none")
compilerendif