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.
Read the manuals! They're all available in PDF on the free CD!
\Keil\C51\HLP\C51.pdf \Keil\C51\HLP\A51.pdf
I do have time to write a code, but I do n't have time to read these five books(manuals). I'll look for the CD if I still have it somewhere. But I thought Keil is straight forward like the others. But can't you give me the procedure to generate the *.bin file. Thanks
Hi andrew I do have time to write a code, but I do n't have time to read these five books(manuals). I'll look for the CD if I still have it somewhere. But I thought Keil is straight forward like the others. But can't you give me the procedure to generate the *.bin file. Thanks
You won't get very far if you don't take the time to read those manuals! Keil has many extensions to ANSI C to make best use of the limited 8051 resources, and the huge variety of different variants; and they aren't all intuitive! ;-) "I thought Keil is straight forward like the others" Just the list of command-line options is 2 pages - and that's nothing compared to Borland, MSVC, and others! For command-line invocation, see: p4 in the "C51 Compiler User's Guide 03.2000" - C51.pdf p179 in the "Macro Assembler and Utilities for 8051 and Variants User's Guide 07.2000" - A51.pdf
Assumption: You have a single C file (main.c).
C51 main.c BL51 main.obj OH51 main
Andrew, I've just got to say that I truly admire your patience. I've observed your consistent feedback to others, referring them to specific manual sections, excerpts, etc. Just looking things up for posters has to take some of your (undoubtedly) valuable time. When it's one of those questions where *my* response to them would be to "Please read the manual!" (but that would be unkind, so I don't respond), you go above an beyond the call of duty. Kudos to you! I'm not specifically responding regarding this particular thread. It's just that the run of this kind of query must have reached a threshold with me. All I have to say is that folks here should be more thankful that they have someone like you that is willing to tell them where they should have *already* looked. Keep up the good work! --Dan Henry