rizinorg / rz-ghidra

Deep ghidra decompiler and sleigh disassembler integration for rizin
GNU Lesser General Public License v3.0
826 stars 88 forks source link

Reduce memory consumption of SLEIGH plugin #133

Open FXTi opened 4 years ago

FXTi commented 4 years ago

Problem:

Solution:

Time:

Will do this in the middle of Sep.

Plan:

HELP NEEDED Still problem in FP to mem, mem to FP (Because I'm not familiar with low level mem mechanism of Radare2)

[0x00000000]> e asm.arch=x86
[0x00000000]> e asm.bits=32
[0x00000000]> pdga
[0x00000000]> "ae 7,0x0,=[8]"
[0x00000000]> "ae 0x0,[8]"
0x7
[0x00000000]> "ae 7,I2F,0x0,=[8]"
[0x00000000]> "ae 0x0,[8]"
0x401c000000000000
[0x00000000]> "ae 7,I2F,512,=[8]"
[0x00000000]> "ae 512,[8]"
0x401c000000000000
[0x00000000]> "ae 7,I2F,512+8,=[8]"
[0x00000000]> "ae 512+16,[8]"
0x401c000000000000
[0x00000000]> "ae 512+32,[8]"
0x401c000000000000
[0x00000000]> 
FXTi commented 3 years ago

https://github.com/rizinorg/rz-ghidra/commit/5be31a8ce3e35b46bbd451bccd20afe8d70c0df8 Doubt if this modification is proper.