The SEGGER Linker was developed from the ground up in order to create executables for Embedded Systems.
When used with RISC-V, the SEGGER Linker can shrink the size of resulting programs by up to 15%. The Linker also shortens link time, delivers a detailed map file and provides more flexibility.
The new SEGGER Linker for RISC-V is based on the same code as the SEGGER Linker for ARM, which has been well-proven in SEGGER’s “Embedded Studio for ARM” IDE. It has inherited many noteworthy features, such as integrated integrity check generation with a number of algorithms (CRCs and hashes), the ability to automatically place code and data in non-contiguous regions, and prioritize data into fast memories.
The RISC-V linker uses a combination of optimization strategies to achieve improvement in code density. These techniques include ordering code and data in the most efficient way to use short addressing modes, and replacing code sequences with more efficient ones, along with the use of spring-boarding technologies.
“This new version of Embedded Studio for RISC-V sets a new standard. The code size reduction achieved by the new linker is astonishing,” says Rolf Segger, Founder of SEGGER. “In combination with the included startup code, runtime library and floating-point library emFloat, which are all highly optimized for RISC-V, it is amazing how small and efficient the resulting RISC-V programs can be. Simply re-linking your application with the SEGGER Linker can reduce code size.”
Embedded Studio is fast, intuitive, easy to use and not Eclipse based. It is a complete solution for any RISC-V based processor, and comes with a runtime library that is optimized for embedded systems. Embedded Studio includes its own tool-chain with the SEGGER Linker and the SEGGER Compiler as well as the GCC and LLVM/Clang tool-chains. Embedded Studio can be used on Windows, macOS and Linux hosts.