Batch Mode

If you are using the command prompt to start the compiler and specify arguments, such as options and/or input files, the compiler starts in the batch mode. In the batch mode, the compiler does not open a window or does not display GUI. The taskbar displays the progress of the compilation processes, such as processing the input.

The following code presents a command to run the RS08 compiler and process two source files, a.c and d.c, which appear as arguments:

  C:\Freescale\CW MCU V10.x\MCU\prog>crs08.exe - F2 a.c d.c 
  

The compiler redirects message output, stdout using the redirection operator, ` >'. The redirection operation instructs the compiler to write the message output to a file. The following code redirects command-line message output to a file, myoutput.o:

  C:\Freescale\CW MCU V10.x\MCU\prog>crs08.exe - F2 a.c d.c > myoutput.o 
  

The command line process returns after the compiling process starts. It does not wait until the previous process has terminated. To start a tool and wait for termination , for example, to synchronize successive operations, use the start command in the Windows® 2000, Windows XP, or Windows Vista™ operating systems, or use the /wait options (refer to the Windows Help `help start'). Using start/wait pairs, you can write perfect batch files. The following code starts a compilation process but waits for the termination of the prior activities before beginning:

  C:\Freescale\CW MCU V10.x\MCU\prog> start /wait crs08.exe -F2 a.c d.c