flat assembler
Message board for the users of flat assembler.
Index
> Windows > Gutting a GCC PE executable. |
Author |
|
f0dder 22 Sep 2011, 19:03
...what?
|
|||
22 Sep 2011, 19:03 |
|
vid 22 Sep 2011, 19:09
seems they have updated the engine used for mbr_tsr
|
|||
22 Sep 2011, 19:09 |
|
typedef 22 Sep 2011, 20:53
vid wrote: seems they have updated the engine used for mbr_tsr hahaha...lol Hey, we should have a like button on this board. |
|||
22 Sep 2011, 20:53 |
|
typedef 22 Sep 2011, 20:54
@TheRaven
Dude, don't make me become your nightmare like mbr_tsr. I hope you respond so I don't become one. |
|||
22 Sep 2011, 20:54 |
|
TheRaven 22 Sep 2011, 21:02
f0dder:
I designed an application in C++ using GCC. I am going to use Olly Debug to open the executable and run the app doing a trace. I am reverse engineering the application in order to see the assembler. Once I am comfortable with what I see I am going to attempt to recreate my application in assembler using the C++ executable as a guide. Then I am going to post the code for the assembler project and the C++ project so that people can see what is there and happening. It's harder to explain than it is to visualize. vid - mbr_tsr - weird. |
|||
22 Sep 2011, 21:02 |
|
typedef 22 Sep 2011, 21:31
TheRaven wrote: f0dder: Well then, I guess you could have used a visual aid. Anyways, you don't have to tell us everything you are going to do. There's a place for that, http://facebook.com or just tell us when you are finished with your project. |
|||
22 Sep 2011, 21:31 |
|
f0dder 22 Sep 2011, 21:37
Run the executable doing a trace? If you want to see what code GCC generates, why don't you just use a disassembler? Or use the "generate assembly listing" for just your code?
|
|||
22 Sep 2011, 21:37 |
|
mindcooler 23 Sep 2011, 07:20
Reading code after gcc is like reading a book after using a food mixer on it.
|
|||
23 Sep 2011, 07:20 |
|
AsmGuru62 23 Sep 2011, 12:32
I saw once what stuff GCC generates - optimizations was ON.
I was not impressed at all - in fact it was much worse than Microsoft compiler(s). The best code I have seen is from Intel C++ compiler - excellent code! |
|||
23 Sep 2011, 12:32 |
|
typedef 23 Sep 2011, 15:47
^^ I agree...
And duh, they know their chips... lols |
|||
23 Sep 2011, 15:47 |
|
f0dder 23 Sep 2011, 18:35
AsmGuru62 wrote: I saw once what stuff GCC generates - optimizations was ON. No compiler is perfect _________________ - carpe noctem |
|||
23 Sep 2011, 18:35 |
|
TheRaven 25 Sep 2011, 02:15
I've seen more reports of optimization in C++ actually outputting broken executables than I have any type of success story on the topic.
intel's C++ compiler, from what I witnessed at their site, is only available for Linux without a commercial license as a non-commercial freeware download. Take it easy. _________________ Nothing so sought and avoided more than the truth. I'm not insane, I know the voices in my head aren't real! |
|||
25 Sep 2011, 02:15 |
|
AsmGuru62 25 Sep 2011, 09:31
I have tried Intel compiler as 30-days deal.
|
|||
25 Sep 2011, 09:31 |
|
TheRaven 25 Sep 2011, 17:40
AsmGuru62 wrote: I have tried Intel compiler as 30-days deal. Have any fun? I'm pondering the installation of the freeware tool chain for linux in a virtual machine. I ran some C++ through a Dev-C++ system using MinGW GCC and the same code through MSVC and could not get similar results between either. _________________ Nothing so sought and avoided more than the truth. I'm not insane, I know the voices in my head aren't real! |
|||
25 Sep 2011, 17:40 |
|
f0dder 25 Sep 2011, 18:27
TheRaven wrote: I'm pondering the installation of the freeware tool chain for linux in a virtual machine. I ran some C++ through a Dev-C++ system using MinGW GCC and the same code through MSVC and could not get similar results between either. _________________ - carpe noctem |
|||
25 Sep 2011, 18:27 |
|
TheRaven 26 Sep 2011, 09:08
f0dder wrote:
That's exactly my point: inconsistent performance, unreliable behaviour and who knows what else. I was rewriting code thinking that I was logically erroneous in areas only to have to go right back to the previous code. It was ridiculous so I closed up shop on the effort for the moment until I can do a re-install and start with a fresh everything. I am seriously thinking that the win32 directory is having an adverse effect on the situation. I should be getting the same results as the system is a basic console app using win32 api and nothing special. _________________ Nothing so sought and avoided more than the truth. I'm not insane, I know the voices in my head aren't real! |
|||
26 Sep 2011, 09:08 |
|
Tyler 27 Sep 2011, 02:14
Try:
Code: gcc -masm=intel -S file.cpp It will output file.s, which will contain the Intel style assembly of the program. |
|||
27 Sep 2011, 02:14 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.