flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
radoslavkirilov
e.g. can I reverse engineer and extract the assembler code of a windows aplication, and ther compile it back with the flat assembler
![]() |
|||
![]() |
|
Garthower
Maybe you help IDA?
|
|||
![]() |
|
radoslavkirilov
There are surely decompilers that make assembler code, but how to compile again the source code?
|
|||
![]() |
|
Daedalus
I don't know any compiler that does that, but you could create an ollydbg script I guess?
Though I have another question: Why? ![]() |
|||
![]() |
|
Xorpd!
There is a blind spot every optimizer I have seen (including myself) has. It would be cool to be able to start with the assembly output of Intel's compiler and patch around that blind spot, however Intel's assembly language output seems to be a hodgepodge of 3 or more assembly languages so that it won't assemble with, for e.g. gas or ml64. Given a disassembler this wouldn't be a problem, but disassembly in the general case is not possible because the code could calculate an address and then jump to it. Detecting when an address calculation is occurring and modifying it so that the jump would be to the changed address is not going to happen.
Maybe the only reasonable thing to do in this case would be to write a translator from Intel assembly output to an assembly language that some assembler understands but this would be a lot of work for just a couple of percent improvement in overall performance. |
|||
![]() |
|
vid
couple of percent is good optimization, but you will hardly manage it with lowlevel optimization. especially optimization on binary code.
|
|||
![]() |
|
f0dder
Xorpd! wrote:
Some perl wizard could probably whip up a script to do it pretty quickly... vid wrote:
Depends on the target platform and what the code is for. <5% speedup on a 1+ GHz x86 generally isn't worth it if it's a lot of work, imho. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.