This repository contains a set of C files to check a C compiler complies with the basic parts of the RISC-V ELF psABI specification.
To check your compiler, run:
$ ./sanity-checker-c [target] [cc] [path/to/sysroot]
[target]
should be one of:
riscv32-unknown-elf
riscv64-unknown-elf
riscv32-unknown-linux-gnu
riscv64-unknown-linux-gnu
[cc]
should be a C compiler to check
[path/to/sysroot]
should be the path to a valid multilib sysroot for the given target. This is optional if your compiler will choose the right directory.
The RISC-V ELF psABI is not language-specific, and so does not mandate the definition of specific C preprocessor definitions.
However, there is value in ensuring that C compilers for the RISC-V psABI match in terms of ABI- and architecture-specific preprocessor defines. These tests ensure that compilers match on the preprocessor definitions.
The C preprocessor definition checks are based on both riscv-toolchain-conventions and riscv-c-api.
Copyright and license informationThe RISC-V ELF psABI Sanity Checker (for C compilers) in this repository is:
© 2019 lowRISC contributors
It is licensed under the Apache 2.0 licence, available in LICENSE.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4