flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
bitRAKE 29 Aug 2024, 19:15
Many compiler flags can build closer to your specific target from "-mfpmath=sse" to "-march=native". For a local build I usually just use "-march=native".
Modifying projects makefile: Code: CFLAGS += -msse2 -mfpmath=sse Code: solution "MySolution" configurations { "Release32" } project "MyProject" kind "ConsoleApp" language "C" targetdir "bin/%{cfg.buildcfg}" objdir "obj/%{cfg.buildcfg}" files { "**.c" } configuration "Release32" defines { "NDEBUG" } optimize "Speed" buildoptions { "-msse2", "-mfpmath=sse" } end end |
|||
![]() |
|
Roman 30 Aug 2024, 06:11
Thanks.
I do sse2 dll. In bat file: C:\MinGW32\bin\mingw32-make.exe -f Makefile CC=gcc config=release32 pmath=sse Code: ;was in premake.lua file if _OPTIONS["with-ou"] or not _OPTIONS["no-threading-intf"] then if _ACTION == "gmake" then if os.get() == "windows" then buildoptions { "-mthreads" } linkoptions { "-mthreads" } defines { "HAVE_PTHREAD_ATTR_SETINHERITSCHED=1", "HAVE_PTHREAD_ATTR_SETSTACKLAZY=1" } else buildoptions { "-pthread" } linkoptions { "-pthread" } end end end ;new variant if _OPTIONS["with-ou"] or not _OPTIONS["no-threading-intf"] then if _ACTION == "gmake" then if os.get() == "windows" then buildoptions { "-mthreads","-msse2", "-mfpmath=sse" } linkoptions { "-mthreads","-msse2", "-mfpmath=sse" } defines { "HAVE_PTHREAD_ATTR_SETINHERITSCHED=1", "HAVE_PTHREAD_ATTR_SETSTACKLAZY=1" } else buildoptions { "-pthread" } linkoptions { "-pthread" } end end end |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.