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

How can I create *.obj and *.bin files !!!!!!!!

How can I create obj files and binary file from *.c and *.a51 files.
I tried C51 command and L51 command from C>\C51\Bin\C51 func1.c func2.c
Is there any parameters go with the commands and the file name in the command line.

Parents
  • Assumption:

    You have a single C file (main.c).

    C51 main.c
    BL51 main.obj
    OH51 main
    

    The C51 command line creates main.obj which is a relocatable OMF51 object module.

    The BL51 command line creates main (.nothing) which is an absolute OMF51 object module.

    The OH51 command line creates an main.hex which is an Intel HEX file.

    To create a BINARY file, refer to the following knowledgebase entry:

    http://www.keil.com/support/docs/274.htm

    Jon


Reply
  • Assumption:

    You have a single C file (main.c).

    C51 main.c
    BL51 main.obj
    OH51 main
    

    The C51 command line creates main.obj which is a relocatable OMF51 object module.

    The BL51 command line creates main (.nothing) which is an absolute OMF51 object module.

    The OH51 command line creates an main.hex which is an Intel HEX file.

    To create a BINARY file, refer to the following knowledgebase entry:

    http://www.keil.com/support/docs/274.htm

    Jon


Children
No data