You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2022/02/21 07:31:32 UTC

[mynewt-core] branch master updated: apps/coremark: Fix output when HARDFLOAT is on

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new ed36655  apps/coremark: Fix output when HARDFLOAT is on
ed36655 is described below

commit ed366551cc2a44f1b06a0ed831504b8507cffc1c
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Fri Feb 18 09:51:43 2022 +0100

    apps/coremark: Fix output when HARDFLOAT is on
    
    When HARDFLOAT is 1 (usually done in compiler.yml) coremark application
    uses floating point for calculations and prints.
    baselibc version of printf does not support %f if FLOAT_USER is not enabled.
    It results in missing information about iterations and total time
    
    2K performance run parameters for coremark.
    CoreMark Size    : 666
    Total ticks      : 1520
    Total time (secs):
    Iterations/Sec   :
    Iterations       : 1000
    Compiler version : GCC10.3.1 20210621 (release)
    Compiler flags   :
    Memory location  : STACK
    seedcrc          : 0xe9f5
    
    To fix this FLOAT_USER is set to 1 in syscfg.yml when HARDFLOAT is 1.
---
 apps/coremark/syscfg.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/apps/coremark/syscfg.yml b/apps/coremark/syscfg.yml
index f29b013..35d7d4e 100644
--- a/apps/coremark/syscfg.yml
+++ b/apps/coremark/syscfg.yml
@@ -20,3 +20,6 @@ syscfg.defs:
     COREMARK_ITERATIONS:
         description: Number of iterations to run
         value: 200
+
+syscfg.vals.HARDFLOAT:
+    FLOAT_USER: 1