-
Notifications
You must be signed in to change notification settings - Fork 17
Support LLVM Toolchain #14
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
base: main
Are you sure you want to change the base?
Conversation
604420c
to
58b1e67
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always write complete English sentences in Git commit messages.
d096b17
to
1f54ad2
Compare
This commit introduces initial support for compiling the RISC-V target using the LLVM toolchain.
@@ -34,15 +34,15 @@ static inline uint16_t pipe_free_space_internal(const pipe_t *p) | |||
return (p->mask + 1) - p->used; | |||
} | |||
|
|||
static inline char pipe_get_byte(pipe_t *p) | |||
static inline __attribute__((__unused__)) char pipe_get_byte(pipe_t *p) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simply do #include "private/utils.h"
and use pre-defined UNUSED
macro.
@@ -17,27 +17,49 @@ DEFINES := -DF_CPU=$(F_CLK) \ | |||
-DF_TIMER=$(F_TICK) \ | |||
-include config.h | |||
|
|||
ASFLAGS = -march=rv32imzicsr -mabi=ilp32 | |||
CFLAGS += -Wall -Wextra -Wshadow -Wno-unused-parameter -Werror | |||
CROSS_COMPILE ?= riscv32-unknown-elf- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set the default value to riscv-none-elf-
as xPack GNU RISC-V Embedded GCC is suggested.
This PR adds experimental support for building Linmo with the LLVM toolchain.
related to #2 , #12
Changes
using the LLVM toolchain.
coalesced
variable inmalloc.c
__maybe_unused
with portable__attribute__((__unused__))