-
Notifications
You must be signed in to change notification settings - Fork 22
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
example: Create sleigh-lift
example program
#9
Conversation
This still needs to be cleaned up but I wanted to check that it's more or less what you were expecting. I've modelled it after At the moment, it works like this:
I don't know why there's so much Pcode for that instruction. I noticed that the disassembly doesn't match for the Remill example here. It looks like this for me:
I'll have to look into that also. |
I think that's the p-code for Overall this seems good. Can you make some convenience functions for automatically discovering the locations of these SLA files? Remill has the same problem, and I have some search paths hard-coded [1], some of which are CMake variables. Probably you could do a better job of what I did in Remill by using CMake's ability to configure a file, substituting [1] https://github.com/lifting-bits/remill/blob/master/lib/BC/Util.cpp#L497-L548 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. A few superficial edits requested.
Otherwise, do you have a sense on how extensible the assembly printers are? Do they break the assembly down into any kind of structure, such as tokens or trees, or would I need to assemble then disassemble to get that?
It doesn't seem to provide a tree structure. You just get an address, an instruction mnemonic and then a "body" which is basically just the arguments. |
This isn't trivial so I'd prefer to make a follow up change with this (I've made #12 to track it). I'm guessing this should be exposed in the header that we discussed above since other projects will want this too. The problem is that the I think the right thing to do is to stop using |
Try to use |
Sounds good. I was referring more to the CMake code that runs on installation though. At the moment the generated Though, this isn't really related to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets pull out that one "megaheader" include thing with the pragma's and call it a PR :-)
appropriate pragmas to silence warnings
Closes #1
sleigh
CMake project instead of a separate oneremill-lift
example