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
  • You cannot compile an OBJ file. An OBJ file is the result of something that has already been compiled or assembled.

    It is theoretically possible to link an OBJ file to a target code image file, such as OMF, HEX or BIN format. Then using a disassembler it is feasible to derive an asembly language listing of the corresponding code. However it is a rare case where this is a productive exercise. In 99.6% of cases it is better to search out the original source code or to re-write the code over again from scratch.

    Michael Karas

Reply
  • You cannot compile an OBJ file. An OBJ file is the result of something that has already been compiled or assembled.

    It is theoretically possible to link an OBJ file to a target code image file, such as OMF, HEX or BIN format. Then using a disassembler it is feasible to derive an asembly language listing of the corresponding code. However it is a rare case where this is a productive exercise. In 99.6% of cases it is better to search out the original source code or to re-write the code over again from scratch.

    Michael Karas

Children