Skip to content

Commit 3f9dd0f

Browse files
rtakacsakosthekiss
authored andcommitted
Use Thumb instructions on TizenRT. (#2629)
In order to decrease the binary size of JerryScript, enabled the Thumb instruction set that is supported on ARM Cortex-R series processors. JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
1 parent bc1b13d commit 3f9dd0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/toolchain_mcu_artik053.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ set(CMAKE_SYSTEM_NAME TizenRT)
1616
set(CMAKE_SYSTEM_PROCESSOR armv7l)
1717
set(CMAKE_SYSTEM_VERSION ARTIK053)
1818

19-
set(FLAGS_COMMON_ARCH -mcpu=cortex-r4 -mfpu=vfpv3 -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -fno-strength-reduce -Wall -Werror -Wshadow -Wno-error=conversion)
19+
set(FLAGS_COMMON_ARCH -mcpu=cortex-r4 -mthumb -mfpu=vfpv3
20+
-fno-builtin -fno-strict-aliasing -fomit-frame-pointer -fno-strength-reduce
21+
-Wall -Werror -Wshadow -Wno-error=conversion)
2022

2123
set(CMAKE_C_COMPILER arm-none-eabi-gcc)
2224
set(CMAKE_C_COMPILER_WORKS TRUE)

0 commit comments

Comments
 (0)