more optimization
This commit is contained in:
parent
076ea10681
commit
67e78a2e87
|
|
@ -353,8 +353,7 @@ endif()
|
||||||
if(SANITIZERS)
|
if(SANITIZERS)
|
||||||
# ASan + Ruby = SEGFAULT
|
# ASan + Ruby = SEGFAULT
|
||||||
set(SANITIZERS "undefined,leak,shift,shift-base,shift-exponent,integer-divide-by-zero,unreachable,vla-bound,null,signed-integer-overflow,bounds,bounds-strict,alignment,object-size,float-divide-by-zero,float-cast-overflow,nonnull-attribute,returns-nonnull-attribute,bool,enum,vptr,pointer-overflow,builtin,pointer-subtract,pointer-compare")
|
set(SANITIZERS "undefined,leak,shift,shift-base,shift-exponent,integer-divide-by-zero,unreachable,vla-bound,null,signed-integer-overflow,bounds,bounds-strict,alignment,object-size,float-divide-by-zero,float-cast-overflow,nonnull-attribute,returns-nonnull-attribute,bool,enum,vptr,pointer-overflow,builtin,pointer-subtract,pointer-compare")
|
||||||
check_option(SANITIZERS_OPTIONS -fsanitize=${SANITIZERS})
|
add_compile_options(-fsanitize=${SANITIZERS} -static-libhwasan -static-liblsan -static-libtsan -static-libubsan)
|
||||||
add_compile_options(${SANITIZERS_OPTIONS})
|
|
||||||
add_link_options(${SANITIZERS_OPTIONS})
|
add_link_options(${SANITIZERS_OPTIONS})
|
||||||
endif()
|
endif()
|
||||||
if(DEBUG)
|
if(DEBUG)
|
||||||
|
|
@ -363,7 +362,8 @@ if(DEBUG)
|
||||||
-fno-omit-frame-pointer
|
-fno-omit-frame-pointer
|
||||||
-Og
|
-Og
|
||||||
-fcheck-new
|
-fcheck-new
|
||||||
-fstrict-flex-arrays=3)
|
-fstrict-flex-arrays=3
|
||||||
|
-fprofile)
|
||||||
add_compile_options(${OPTIONS_DEBUG})
|
add_compile_options(${OPTIONS_DEBUG})
|
||||||
|
|
||||||
if("${ARCH_DEBUG}" STREQUAL "")
|
if("${ARCH_DEBUG}" STREQUAL "")
|
||||||
|
|
@ -386,10 +386,20 @@ else()
|
||||||
-frename-registers
|
-frename-registers
|
||||||
-fuse-linker-plugin
|
-fuse-linker-plugin
|
||||||
-fipa-pta
|
-fipa-pta
|
||||||
|
-fipa-icf
|
||||||
-fext-dce
|
-fext-dce
|
||||||
-fstrict-enums
|
-fstrict-enums
|
||||||
-fimplicit-constexpr
|
-fimplicit-constexpr
|
||||||
-fomit-frame-pointer)
|
-fomit-frame-pointer
|
||||||
|
-fno-ident
|
||||||
|
-fvirtual-function-elimination
|
||||||
|
-fwhole-program-vtables
|
||||||
|
-fweb
|
||||||
|
-fuse-linker-plugin
|
||||||
|
-mrecip
|
||||||
|
-fno-unique-section-names
|
||||||
|
-fira-loop-pressure
|
||||||
|
-fira-hoist-pressure)
|
||||||
add_compile_options(${OPTIONS_RELEASE})
|
add_compile_options(${OPTIONS_RELEASE})
|
||||||
|
|
||||||
add_link_options(-Wl,-O2
|
add_link_options(-Wl,-O2
|
||||||
|
|
@ -399,6 +409,13 @@ else()
|
||||||
-Wl,--strip-all
|
-Wl,--strip-all
|
||||||
-Wl,--no-copy-dt-needed-entries)
|
-Wl,--no-copy-dt-needed-entries)
|
||||||
|
|
||||||
|
#Platform Specific
|
||||||
|
if(LINUX)
|
||||||
|
check_option(OPTIONS_RELEASE_LINUX -fno-plt)
|
||||||
|
add_compile_options(${OPTIONS_RELEASE_LINUX})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Loading release options specific for cpu arch from toolchain file
|
||||||
if("${ARCH_RELEASE}" STREQUAL "")
|
if("${ARCH_RELEASE}" STREQUAL "")
|
||||||
message(STATUS "ARCH_RELEASE empty")
|
message(STATUS "ARCH_RELEASE empty")
|
||||||
else()
|
else()
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
c = 0
|
c = 0
|
||||||
|
Graphics.frame_rate = 1000
|
||||||
while c < 1000
|
while c < 1000
|
||||||
c = c + 1
|
c = c + 1
|
||||||
puts c
|
|
||||||
Graphics.frame_reset
|
|
||||||
Graphics.update
|
|
||||||
Font.default_size = c
|
Font.default_size = c
|
||||||
|
puts CTime.day
|
||||||
|
puts CTime.hour
|
||||||
|
Graphics.update
|
||||||
|
puts c
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,8 @@ set(ARCH_RELEASE
|
||||||
-mrelax-cmpxchg-loop
|
-mrelax-cmpxchg-loop
|
||||||
-momit-leaf-frame-pointer
|
-momit-leaf-frame-pointer
|
||||||
-mgather
|
-mgather
|
||||||
-mscatter)
|
-mscatter
|
||||||
|
-mcldemote
|
||||||
|
-mbranches-within-32B-boundaries
|
||||||
|
-mavoid-false-dependencies)
|
||||||
set(ARCH_DEBUG "")
|
set(ARCH_DEBUG "")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue