I made a simple assembly program about a year ago and I lost the source, but I still have the .exe file. I wanted to see the assembly code, so I disassembled the program with ollydbg and there was MUCH MORE code. There was about 3000-4000 lines of code, but the original program had less the 100! Why?
sergent
52
Posting Pro
Recommended Answers
Jump to Postthe dis-assembler does not produce the same highlevel source code you had before you ran the assembly language compiler
it produces an intermediate opcode equal to each byte sequence within the exe
the traditional hello world program, is;"hello, world" in assembly language for BeOS ; ;nasm …
Jump to PostIf you wrote a program in Assembly, then when you pass your code through the assembler you get a "one to one" translation (what you wrote in Assembly is what will be in the exe file), now if on the other hand, you thought you wrote in Assembly and passed …
All 6 Replies
almostbob
866
Retired: passive income ROCKS
sergent
commented:
Helpful :)
+0
sergent
52
Posting Pro
almostbob
866
Retired: passive income ROCKS
sergent
52
Posting Pro
nezachem
616
Practically a Posting Shark
GunnerInc
7
xor eax, eax
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.