User guide
C-52
Compile-Time Options
arguments:
%vcs top.v test.c -CFLAGS "-I$VCS_HOME/include"
or
%setenv CWD ‘pwd‘
%vcs top.v test.c -CFLAGS "-I$CWD/include"
or
%vcs top.v test.c -CFLAGS "-I../include"
Note:
The reason to enter "../include" is because VCS creates a default
csrc directory where it runs gcc commands. The csrc directory is
under your current working directory. Therefore, you need to
specify the relative path of the include directory to the csrc
directory for gcc C compiler. Further, you cannot edit files in the
csrc because VCS automatically creates this directory.
-cpp
Specifies the C++ compiler.
Note:
If you are entering a C++ file, or an object file compiled from a
C++ file, on the vcs command line, you must tell VCS to use
the standard C++ library for linking. To do this enter the
-lstdc++ linker flag with the -LDFLAGS compile-time option.
For example:
vcs source.v source.cpp -P my.tab \
-cpp /net/local/bin/c++ -LDFLAGS -lstdc++
-jnumber_of_processes
Specifies the number of processes that VCS forks for parallel
compilation. There is no space between the "j" character and the
number. You can use this option in any compilation mode: directly
generating object files from the parallel compilation of your Verilog
source files (-gen_obj, default on the HP, Solaris, and Linux