how to use the c51 compiler for example if i use c51 -C main.c it is giving error like c51 FATAL-ERROR - ACTION: PARSING INVOKE-/#PRAGMA - LINE LINE: C:\KEIL\C51\BIN\c51.exe -C main.c ERROR: UNKNOWN CONTROL C51 TERMINATED.
What ever made you think '-C' was an option recognized by the C51 compiler? It's not. To find out what the actual options are, consult the Manual --- that's what you have it for.
This multiple posting stuff is silly. Please stop. The C51 command line options differ from many of the more "mainstream" (and I use that term loosely) compilers.
If you have a project you can look at the "C51 Options" to see the command line arguments. The manual will explain what they mean.
these commands will work only htsoft c51 compiler
"these commands will work only htsoft c51 compiler" Pardon?
commands like C51 --CHIP=8051AH -C main.c module1.c asmcode.as C51 --CHIP=8051AH main.obj module1.obj asmcode.obj C51 --CHIP=8051AH -Ddebug -Dbuffers=10 test.c C51 --CHIP=8051AH -Ex.err x.c etc
This forum is for the Keil C51 compiler. Keil C51's command line options are different than HI-TECH C51's command line options. If you want to ask something about the HI-TECH compiler, go to http://www.htsoft.com and ask on their forum.