Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automated verification of clobbers #4

Open
edef1c opened this issue Apr 16, 2015 · 1 comment
Open

automated verification of clobbers #4

edef1c opened this issue Apr 16, 2015 · 1 comment

Comments

@edef1c
Copy link
Owner

edef1c commented Apr 16, 2015

I'd like to have some form of automated verification that we're not unintentionally modifying processor state that we're not declaring as clobbered.
Preferably, we would automatically generate a list of processor state from a third-party source (such as Capstone) and use this to generate our clobber lists.

Additionally, we could pattern-match the stack-swap code in real programs, and use this to statically check for state being carried across contexts.

@Amanieu
Copy link
Collaborator

Amanieu commented Sep 1, 2016

A good start would be to look at the list of clobbers supported by clang for each architecture: https://github.com/llvm-mirror/clang/blob/master/lib/Basic/Targets.cpp (search for GCCRegNames)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants