[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Assembler -to- Binary vs. C -to- Binary



I compiled the same set of instructions :
1. Using C
2. Using Assembly
into Binary .

I issued the  file  command  to show the type of the resulting files (assembler -
binary and C - Binary )

Both showed different results :
1. sangharsh.cexe :  ELF 32-bit LSB Executable , Intel 80386 , version 1 ,
dynamically linked (uses shared libs) , stripped

2.sangharsh.assexe : ELF 32-bit  LSB re-locatable , Intel 80386 version1 , not
stripped.


I can not run 2 ie : the binary I made out of the assembler code (OK chmod +x
filename was done) .They say that they can not execute the binary !


Could somebody please explain what all this means ?


Thanks in advance ....
(shyamk@eth.net)
Shyam



Reply to: