View previous topic :: View next topic |
Author |
Message |
sumone4life Cheater
Reputation: 0
Joined: 26 Feb 2007 Posts: 27
|
Posted: Mon Jul 02, 2007 11:45 am Post subject: C++ and ASM |
|
|
Does anyone know of a website that compares ASM code side by side to C++. I am interested in figuring out which ASM codes and lines of code correspond to different code in c++. So if anyone knows of a website or place i can go to see this side by side comparison that would be great!
Also if anyone knows and links for reverse engineering tutorials or information that would be great! _________________
-amen |
|
Back to top |
|
 |
BRONiUS Expert Cheater
Reputation: 0
Joined: 26 Jun 2006 Posts: 154 Location: Vilnius, Lithuania
|
Posted: Mon Jul 02, 2007 12:42 pm Post subject: |
|
|
www.tuts4you.com Search for lena's151 tutorials.
' _________________
Rhapsody in Blue is Epic. |
|
Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Mon Jul 02, 2007 12:43 pm Post subject: |
|
|
Get a disassembler |
|
Back to top |
|
 |
sumone4life Cheater
Reputation: 0
Joined: 26 Feb 2007 Posts: 27
|
Posted: Mon Jul 02, 2007 1:23 pm Post subject: |
|
|
I have a dissasembler it just seems that for a simple program like "Hello World" in c++ looks very drawn out and theres alot of extra stuff in the asm. Probably because of the includes and various things it needs to do but i just really want to see what say:
cout << "Hello World";
looks like in asm or somthing along those lines _________________
-amen |
|
Back to top |
|
 |
BRONiUS Expert Cheater
Reputation: 0
Joined: 26 Jun 2006 Posts: 154 Location: Vilnius, Lithuania
|
Posted: Mon Jul 02, 2007 2:05 pm Post subject: |
|
|
Code: | .386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib
.data
msgboxcaption db "ITZ LIEK HALLO WRLD!!11",0
msgboxtext db "HAI BLAWB!",0
.code
start:
invoke MessageBox, NULL, addr msgboxtext, addr msgboxcaption, MB_OK
invoke ExitProcess, NULL
end start |
_________________
Rhapsody in Blue is Epic. |
|
Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Mon Jul 02, 2007 2:17 pm Post subject: |
|
|
sumone4life wrote: | I have a dissasembler it just seems that for a simple program like "Hello World" in c++ looks very drawn out and theres alot of extra stuff in the asm. |
It's called "bloat" and it's why you shouldn't use C++. |
|
Back to top |
|
 |
sumone4life Cheater
Reputation: 0
Joined: 26 Feb 2007 Posts: 27
|
|
Back to top |
|
 |
|