Thursday, December 16, 2010

*** To geneare assembly of any c|c++ program using DEV-C ***

step1:
 write a simple c|c++ program using dev-c compiler

step2:
save it in bin directory

step3:
open command prompt

step4:
type cd..
again type cd..

step5:
go to C: \Dev-Cpp\bin

step6:
write gcc|g++ -o -op <filename>

step7:
op><filename.exe>

step8:
write gcc|g++ -S <filename>

step9:
go to dev-c

step10:
open c|c++ program for which you are generating assembly language...

step11:
open <filename.s> this will be nothing but the assembly of the c|c++ program which u hav made ....

The assmbely tht it will generte will be of complier dependent... becoz different compliers will generate different assembly of the c|c++ program ... according to the issue whether they are 32 bit or 64 bit....
thts all about generating the assembly of any c|c++ program...




Gurpreet Singh
 

No comments:

Post a Comment