Skip to content

chaoRIOS/model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Performance model

Performance model built for PicoRio 2.0 is implemented with Python and Rust.

Set up Rust environment

Note: Multiple Rust extensions will be conflicting. Make sure you have uninstalled any other Rust extensions.

## Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

## Install Rust components
rustup install nightly  
cargo +nightly install racer
cargo install --force rustfmt
cargo install --force rls

rustup component add rls-preview
rustup component add rust-analysis
rustup component add rust-src

Install VS Code extension Rust and set following configuration.

{
    "rust-client.channel": "stable",
    "rust-client.rustupPath": "~/.cargo/bin/rustup",
    "editor.formatOnSave": true,
}

Build Rust modules as dynamic link library

make build-[module-name]

Available modules:

Module name Python wrapper Path
elfparser utils/elf_parser.py utils/elf-parser/
decoder utils/decoder_warpper.py utils/decoder/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published