Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(Build): Set Compressed Instruction Set as Default for RISC-V #703

Merged
merged 2 commits into from
Aug 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Libraries/CMSIS/Device/Maxim/GCC/gcc_riscv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ ifeq "$(PREFIX)" "riscv-none-elf"
# With the upgrade to riscv-none-elf came a new ISA spec
# See https://groups.google.com/a/groups.riscv.org/g/sw-dev/c/aE1ZeHHCYf4
# BASE = RV32I
# EXTENSION = M
# EXTENSION = MC
# EXTRAS = _zicsr_zifencei as recommended above
MARCH ?= rv32im_zicsr_zifencei
MARCH ?= rv32imc_zicsr_zifencei
endif

# Default option (riscv-none-embed)
Expand Down Expand Up @@ -451,7 +451,9 @@ ifeq "$(CYGWIN)" "True"
endif

# The rule for linking the application.
${BUILD_DIR}/%.elf: $(PROJECTMK) | $(BUILD_DIR)
# Note "RISCV_COMMON_LD" in the dependency tree. Part-specific makefiles (ie. max78000.mk)
# are responsible for defining this optional variable.
${BUILD_DIR}/%.elf: $(PROJECTMK) $(RISCV_COMMON_LD) | $(BUILD_DIR)
# This rule parses the linker arguments into a text file to work around issues
# with string length limits on the command line
ifeq "$(_OS)" "windows_msys"
Expand Down