what is the directive to use concatenate several commands when compiling with command line?
thank you.
Fausto Bartra
What kind of "commands" would you be talking about there, and what did you hope to achieve by concatenating them?
I would like to create my custom command line file.
so all the compiling controls can be passed with this custom file
or may be there is already another option?
thank you
In the 'Options' pane (Alt+F7) there is a 'User' tab to allow you to add custom commands as needed.
These could point to a batch file if multiple commands are needed.
It's still unclear what you're talking about, mainly due to confusing terminology: "compiling controls" are not "commands"
Your request is also not clear to me. Do you want to specify a command file for the C51 where all compiler directives including source file and object file is specified? If yes, you can invoke the C51 compiler with:
C51 @commandfile
as described in our manual on this page: https://developer.arm.com/documentation/101655/0961/Cx51-User-s-Guide/Compiling-Programs/Command-Prompt?lang=en
Our µVision IDE invokes the compiler the same way when building a project (see *.__i files when using the option 'Options for Target - Output - Create Batch File'). You could generate this command-file in a batch or make file if some options are dynamic.
Hans:
I am referring to the directives such as:
DB OA OE BR CD SB O2 NOAREGS LA OT(11,SPEED) etc.
INCDIR,
Fausto
Since you want to compile your code from the command line, this should be exactly what I suggested. You also need to include the source file and the output file in this command file, so really the complete compiler command string except the compiler itself.