-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
116 changed files
with
26,616 additions
and
721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: WASI Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
wasi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build | ||
run: | | ||
WASI_SDK=wasi-sdk-19.0 | ||
WASI_SDK_URL=https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sdk-19.0-linux.tar.gz | ||
if ! [ -d ${WASI_SDK} ]; then curl -L ${WASI_SDK_URL} | tar xzf -; fi | ||
mkdir -p build | ||
cat > build/Makefile.conf <<END | ||
export PATH := $(pwd)/${WASI_SDK}/bin:${PATH} | ||
WASI_SYSROOT := $(pwd)/${WASI_SDK}/share/wasi-sysroot | ||
CONFIG := wasi | ||
PREFIX := / | ||
ENABLE_TCL := 0 | ||
ENABLE_READLINE := 0 | ||
ENABLE_PLUGINS := 0 | ||
ENABLE_ZLIB := 0 | ||
END | ||
make -C build -f ../Makefile CXX=clang -j$(nproc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
*.o | ||
*.d | ||
*.dwo | ||
.*.swp | ||
*.gch | ||
*.gcda | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
This directory contains the runtime components of CXXRTL and should be placed on the include path | ||
when building the simulation using the `-I${YOSYS}/backends/cxxrtl/runtime` option. These components | ||
are not used in the Yosys binary; they are only built as a part of the simulation binary. | ||
|
||
The interfaces declared in `cxxrtl_capi*.h` contain the stable C API. These interfaces will not be | ||
changed in backward-incompatible ways unless no other option is available, and any breaking changes | ||
will be made in a way that causes the downstream code to fail in a visible way. The ABI of these | ||
interfaces is considered stable as well, and it will not use features complicating its use via | ||
libraries such as libffi or ctypes. | ||
|
||
The implementations in `cxxrtl_capi*.cc` are considered private; they are still placed in the include | ||
path to enable build-system-less builds (where the CXXRTL runtime component is included in the C++ | ||
file of the simulation toplevel). | ||
|
||
The interfaces declared in `cxxrtl*.h` (without `capi`) are unstable and may change without notice. | ||
|
||
For clarity, all of the files in this directory and its subdirectories have unique names regardless | ||
of the directory where they are placed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.