You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 24, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: lucetc/lucetc/options.rs
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,7 @@ pub struct Options {
120
120
pubpk_path:Option<PathBuf>,
121
121
pubsk_path:Option<PathBuf>,
122
122
pubcount_instructions:bool,
123
+
pubpinned_heap:bool,
123
124
puberror_style:ErrorStyle,
124
125
pubtarget:Triple,
125
126
}
@@ -211,6 +212,7 @@ impl Options {
211
212
let sk_path = m.value_of("sk_path").map(PathBuf::from);
212
213
let pk_path = m.value_of("pk_path").map(PathBuf::from);
213
214
let count_instructions = m.is_present("count_instructions");
215
+
let pinned_heap = m.is_present("pinned_heap");
214
216
215
217
let error_style = match m.value_of("error_style"){
216
218
None => ErrorStyle::default(),
@@ -239,6 +241,7 @@ impl Options {
239
241
sk_path,
240
242
pk_path,
241
243
count_instructions,
244
+
pinned_heap,
242
245
error_style,
243
246
target,
244
247
})
@@ -452,6 +455,12 @@ SSE3 but not AVX:
452
455
.takes_value(false)
453
456
.help("Instrument the produced binary to count the number of wasm operations the translated program executes")
454
457
)
458
+
.arg(
459
+
Arg::with_name("pinned_heap")
460
+
.long("--pinned-heap-reg")
461
+
.takes_value(false)
462
+
.help("This feature is not stable - it may be removed in the future! Pin a register to use as this module's heap base. Typically improves performance.")
0 commit comments