riscv-software-src / homebrew-riscv

homebrew (macOS) packages for RISC-V toolchain
https://riscv.org
310 stars 50 forks source link

Default to -mcmodel=medany #59

Closed aswaterman closed 3 years ago

aswaterman commented 3 years ago

This does the right thing for more people's memory maps.

It will result in a very slight perf regression in programs heavy in global variable access. For application code, the old behavior can be obtained by explicitly passing -mcmodel=medlow.

Supersedes #58

Note, I haven't tested this!!

cfriedt commented 3 years ago

That would probably work for my use case (I haven't tested it yet either though).

Thanks!