{"id":20982014,"url":"https://github.com/lowrisc/epic-tock-rs-example","last_synced_at":"2026-03-19T18:18:25.062Z","repository":{"id":42130349,"uuid":"470097704","full_name":"lowRISC/epic-tock-rs-example","owner":"lowRISC","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-12T09:02:08.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-02T03:40:43.575Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lowRISC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-15T09:56:18.000Z","updated_at":"2025-06-08T03:53:07.000Z","dependencies_parsed_at":"2022-08-12T07:30:33.366Z","dependency_job_id":null,"html_url":"https://github.com/lowRISC/epic-tock-rs-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lowRISC/epic-tock-rs-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowRISC%2Fepic-tock-rs-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowRISC%2Fepic-tock-rs-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowRISC%2Fepic-tock-rs-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowRISC%2Fepic-tock-rs-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lowRISC","download_url":"https://codeload.github.com/lowRISC/epic-tock-rs-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowRISC%2Fepic-tock-rs-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30635168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T22:38:22.569Z","status":"ssl_error","status_checked_at":"2026-03-17T22:38:11.804Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T05:42:16.111Z","updated_at":"2026-03-17T23:31:01.442Z","avatar_url":"https://github.com/lowRISC.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RISC-V Embedded PIC Tock OS Rust App Example\n\n## Overview\n\nlowRISC is working on a specification and [prototype toolchain implementation](https://github.com/lowRISC/llvm-project/commits/epic) of an Embedded PIC (ePIC) ABI for RISC-V.\n\nThis repository illustrates how to use the work-in-progress ePIC toolchain implementation to create relocatable RISC-V Tock OS applications. It builds a libtock-rs `console` example app with an ePIC configuration and runs it under QEMU. The example prints the addresses and values of some program symbols, to demonstrate the relocation capabilities.\n\n## Building and Running\n\nFirst you need to clone this repo and its submodules\n```\ngit clone --recursive https://github.com/jprendes/epic-tock-rs-example.git\n```\n\nIf you didn't clone recursively, you need to initialize the submodules:\n```\ngit submodule update --init --recursive\n```\n\nBuild requirements:\n\n- LLVM build dependencies\n\nThe other dependencies are installed automatically. This example has been tested against Tock commit `935755eb3`.\n\nUse `cmake -S . -B ./build -G Ninja` to configure the project and `cmake --build ./build` to build everything.\n\nIf you already have ePIC enabled LLVM and `rustc` builds, you can specify their locations with `LLVM_DIR` and `RUST_DIR`.\nFor example: `cmake -S . -B ./build -G Ninja -DLLVM_DIR=/path/to/epic-llvm -DRUST_DIR=/path/to/epic-rust`.\nLLVM binaries will be searched in `${LLVM_DIR}/bin/` and rustc binaries will be searched in `${RUST_DIR}/bin`.\n\nUse `cmake --build ./build -- run-console-hifive1` to run the app in hifive1, and `cmake --build ./build -- run-console-opentitan_earlgrey_cw310` to run the app in opentitan.\n\n## Licensing\n\nUnless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see [LICENSE](LICENSE) for full text).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowrisc%2Fepic-tock-rs-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flowrisc%2Fepic-tock-rs-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowrisc%2Fepic-tock-rs-example/lists"}