
"Newlib is a popular C library which is used in embedded systems. It implements important functions used across many applications. It contains e.g. functions that operate on strings or math functions (programs use those when starting with #include <string.h> or #include <math.h>""). Some functions are written in C, while others are written in assembly. There may be speed and code size optimized versions of the functions. A RISC-V specific port for libc has been contributed to newlib in 2017, but has not seen significant updates since. The RISC-V port is not yet as exhaustive as for other architectures. In addition, many new extensions have been ratified since, which can improve performance or reduce code size further, e.g. bit-manipulation (B), Integer Conditional Operations (Zicond), Code Size Reduction (Zc*), with more to come (P, Zilsd/Zclsd). The goal of this project is to optimize newlib for RISC-V. Optimization will be measured in reduction of static code size, or reduction of clock cycles spent in the function. As most instructions are fairly simple, instructions retired might be used as a proxy of cycles. The benchmarking done in this project should compare the performance of the library built for RISC-V, with the library built for other architectures (e.g. ARMv…), and the assembly optimized functions should be compared with generic C libraries compiled for RISC-V with the various extensions enabled.
No project history available for this organization.
Counts are based on projects listed in the Contribo catalog.
Showing 1 of 1 projects. Click any project card for scope, mentors, and proposal studio.
"Newlib is a popular C library which is used in embedded systems. It implements important functions used across many applications. It contains e.g. functions that operate on strings or math functions (programs use those when starting with #include <string.h> or #include <math.h>""). Some functions are written in C, while others are written in assembly. There may be speed and code size optimized versions of the functions. A RISC-V specific port for libc has been contributed to newlib in 2017, but has not seen significant updates since. The RISC-V port is not yet as exhaustive as for other architectures. In addition, many new extensions have been ratified since, which can improve performance or reduce code size further, e.g. bit-manipulation (B), Integer Conditional Operations (Zicond), Code Size Reduction (Zc*), with more to come (P, Zilsd/Zclsd). The goal of this project is to optimize newlib for RISC-V. Optimization will be measured in reduction of static code size, or reduction of clock cycles spent in the function. As most instructions are fairly simple, instructions retired might be used as a proxy of cycles. The benchmarking done in this project should compare the performance of the library built for RISC-V, with the library built for other architectures (e.g. ARMv…), and the assembly optimized functions should be compared with generic C libraries compiled for RISC-V with the various extensions enabled.