Skip to content

Commit

Permalink
[cortex-m] Avoid slow memcpy and memset in startup code
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Jan 23, 2025
1 parent 539a0bf commit dcadbed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modm/platform/core/cortex/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,12 @@ def build(env):

# startup script
env.template("reset_handler.sx.in")
env.template("startup.c.in")
ops = env.template("startup.c.in")
env.collect(":build:cflags", "-fno-builtin", operations=ops)
env.collect(":build:linkflags", "-nostartfiles")

env.template("vectors.c.in")
env.template("vectors.hpp.in")
env.collect(":build:linkflags", "-nostartfiles")

# dealing with runtime assertions
if env.has_module(":architecture:assert"):
Expand Down

0 comments on commit dcadbed

Please sign in to comment.