|
|
Subscribe / Log in / New account

Compiler-generated NOPs

Compiler-generated NOPs

Posted Oct 8, 2024 20:50 UTC (Tue) by riking (subscriber, #95706)
In reply to: Uhh what? by NYKevin
Parent article: Efficient Rust tracepoints

This does actually exist already: https://doc.rust-lang.org/beta/unstable-book/compiler-fla... places NOPs at or before the start of a function. The problem is putting them in the middle of a function.


to post comments

Compiler-generated NOPs

Posted Oct 31, 2024 13:43 UTC (Thu) by sammythesnake (guest, #17693) [Link]

How about an inlined function that starts with the required NOPS and then does nothing? Is that something available in Rust and would it do the job...?


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds