mcpat-sys 0.8.0

The package provides bindings to McPAT.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use libc::c_double;

use sharedcache::SharedCache;

#[derive(Clone, Copy, Debug)]
#[repr(C)]
pub struct Core;

extern "C" {
    pub fn Core_clockRate(this: *mut Core) -> c_double;
    pub fn Core_executionTime(this: *mut Core) -> c_double;
    pub fn Core_l2cache(this: *mut Core) -> *mut SharedCache;
}