Share via


/Zs - Check Syntax Only

This option tells the compiler to check only the syntax of the source files that follow the option on the command line. This option provides a quick way to find and correct syntax errors before you try to compile and link a source file.

When you give the /Zs option, the compiler does not generate code or produce object files, object listings, or executable files. The compiler, however, does display error messages if the source file has syntax errors.

All supported compilers implement the /Zs option. The following examples show how to use the /Zs option to check syntax on all source files in the current working directory that end with the .c extension.

  • ARM Compiler

    CLARM /Zs *.C
    
  • THUMB Compiler

    CLTHUMB /Zs *.C
    
  • SHx Compiler

    CLSH /Zs *.C
    
  • MIPS Compiler

    CLMIPS /Zs *.C
    

See Also

About Microprocessor Compilers | ARM Guide | Hitachi Guide | MIPS Guide

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.