This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CAN I COMPILE OBJ FILE

HI
iam new to microcontrollers, iam working on c8051f003,my question is can i compile obj file or can i extract assembly code from obj
and save as .asm will it work


regards
wilson

Parents
  • "Translation back to C would often be called a 'decompiler'."

    Most often, it's just called highly improbable ;-)

    With assembler, each source instruction creates exactly one machine instruction - so, conversely, each machine instruction can be converted back to the source instruction that created it.

    With high-level languages (such as 'C') this is not so; a single source instruction is likely to create very many machine instructions. Also, many different source lines could be implemented with the same sequence of machine instrucions.
    THus it is extremely difficult to "decompile" from machine code to 'C' source.

Reply
  • "Translation back to C would often be called a 'decompiler'."

    Most often, it's just called highly improbable ;-)

    With assembler, each source instruction creates exactly one machine instruction - so, conversely, each machine instruction can be converted back to the source instruction that created it.

    With high-level languages (such as 'C') this is not so; a single source instruction is likely to create very many machine instructions. Also, many different source lines could be implemented with the same sequence of machine instrucions.
    THus it is extremely difficult to "decompile" from machine code to 'C' source.

Children
No data