News for hackers. Stuff that matters.
Re:Intel XED – x86 Encoder Decoder by CalChris on Monday May 06, 2019 @07:07PM (#19844841)
Intel is releasing the source of XED but canceling IACA which is built on top of XED. Color me confused. Still, this will be useful for a lot of projects to have this piece of infrastructure for such an important CISC ISA available under an Apache license. Boring as hell, but useful.

For example, ARM tests their ARM LLVM backend using a golden reference implementation. This is the MC Hammer test: encode/decode assemble/disassemble[1]. This can be the golden reference for the same with x86_64 and useful for GCC+LLVM.

[1] https://llvm.org/devmtg/2012-04-12/Slides/Richard_Barton.pdf

Re:Intel XED – x86 Encoder Decoder by orodley on Tuesday May 07, 2019 @01:42AM (#19846920)
Intel released the source of XED a while ago, in December 2016. Not sure why it's popping up on HN now.
Re:Intel XED – x86 Encoder Decoder by corysama on Tuesday May 07, 2019 @03:41AM (#19847339)
Probably inspired by it's use in https://news.ycombinator.com/item?id=19813993
Re:Intel XED – x86 Encoder Decoder by dtornabene on Tuesday May 07, 2019 @12:35AM (#19846628)
There was a talk at Recon several years ago by Richard Johnson called "Go Speed Tracer" that goes into some of things built with a tool like this. Its a serious talk, dense with information, covers some guided fuzzing territory and alot about tracing engines (hence the name). He mentions xed by name in the talk and notes interestingly enough that despite Pin and xed being developed inhouse at intel there isn't a one-to-one parity between the silicon and the disassembler and subsequently Pin itself. Glad to be able to sift through the source now, thanks for posting this 'peter_d_sherman

Link for the talk https://www.youtube.com/watch?v=oWKDaD9wrWo

Re:Intel XED – x86 Encoder Decoder by AdmVonSchneider on Tuesday May 07, 2019 @05:05AM (#19847677)
Anyone interested in accurate (and fast) instruction decoding for x86(-64) should also look into Zydis: https://github.com/zyantific/zydis
Re:Intel XED – x86 Encoder Decoder by vardump on Tuesday May 07, 2019 @01:50AM (#19846951)
Anyone done any work to confirm how accurate XED is? Do all the decoded instruction lengths match with real hardware? Sure, it's from Intel, but I'd like to have something more. Other x86 decoders could have been better.
Re:Intel XED – x86 Encoder Decoder by vectorEQ on Tuesday May 07, 2019 @04:24AM (#19847504)
XED is fairly accurate. prefer to use capstone, but i suppose it's what you're used to... i feel XED has more potential because it's from the vendor. at least for intel brand cpus.
Re:Intel XED – x86 Encoder Decoder by sabas123 on Tuesday May 07, 2019 @02:08AM (#19847002)
After tinkering for quite some time with multiple disassemblers I can confirm that XED is hands down the best in the market
Re:Intel XED – x86 Encoder Decoder by gnufx on Tuesday May 07, 2019 @05:51PM (#19853780)
MAQAO (http://maqao.org/) might also be of interest.