Skip to content

Commit 52a02bb

Browse files
zyczcarlescufi
authored andcommitted
samples: coremark: Add compiler flags
Add compiler flags to increase performance. JIRA: NCSDK-30665 Signed-off-by: Jan Zyczkowski <[email protected]>
1 parent d8292cb commit 52a02bb

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

samples/benchmarks/coremark/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
CONFIG_COREMARK=y
99

1010
# Compiler options
11-
CONFIG_COMPILER_OPT="-O3"
11+
CONFIG_COMPILER_OPT="-O3 -fno-lto -fno-pie -fno-pic -funroll-loops -ffunction-sections -fdata-sections"
1212

1313
# Config results output
1414
# The default logging level is set to the OFF level.

samples/benchmarks/coremark/prj_flash_and_run.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
CONFIG_COREMARK=y
99

1010
# Compiler options
11-
CONFIG_COMPILER_OPT="-O3"
11+
CONFIG_COMPILER_OPT="-O3 -fno-lto -fno-pie -fno-pic -funroll-loops -ffunction-sections -fdata-sections"
1212

1313
# Config results output
1414
# The default logging level is set to the OFF level.

samples/benchmarks/coremark/prj_heap_memory.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
CONFIG_COREMARK=y
99

1010
# Compiler options
11-
CONFIG_COMPILER_OPT="-O3"
11+
CONFIG_COMPILER_OPT="-O3 -fno-lto -fno-pie -fno-pic -funroll-loops -ffunction-sections -fdata-sections"
1212

1313
# Config results output
1414
# The default logging level is set to the OFF level.

samples/benchmarks/coremark/prj_multiple_threads.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
CONFIG_COREMARK=y
99

1010
# Compiler options
11-
CONFIG_COMPILER_OPT="-O3"
11+
CONFIG_COMPILER_OPT="-O3 -fno-lto -fno-pie -fno-pic -funroll-loops -ffunction-sections -fdata-sections"
1212

1313
# Config results output
1414
# The default logging level is set to the OFF level.

samples/benchmarks/coremark/prj_static_memory.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
CONFIG_COREMARK=y
99

1010
# Compiler options
11-
CONFIG_COMPILER_OPT="-O3"
11+
CONFIG_COMPILER_OPT="-O3 -fno-lto -fno-pie -fno-pic -funroll-loops -ffunction-sections -fdata-sections"
1212

1313
# Config results output
1414
# The default logging level is set to the OFF level.

0 commit comments

Comments
 (0)