This section describes the Vitis
compiler command, v++
, and the various options it
supports for building the FPGA binary.
The Vitis compiler is a standalone
command line utility (v++
) for compiling kernel
accelerator functions into Xilinx object (XO) files,
linking them with other XO files and supported platforms to build a device binary (xclbin), and package the design into an SD card or flash
memory file for booting and loading systems.
The three command modes supported by the Vitis compiler include:
-
--compile
(-c
): For compiling C/C++ code into accelerated kernels as described in Compiling Kernels with the Vitis Compiler -
--link
(-l
): For linking multiple kernels and a target hardware platform into a Xilinx device binary (xclbin) as described in Linking the Kernels -
--package
(-p
): For packaging an AI Engine libadf.a file into the xclbin, and generating an SD card file or QSPI/OSPI file as needed to initialize and boot the accelerated system as described in Packaging the System
Beyond these three command modes there are many options available to customize the build process as described in the following sections. Some of the options are supported for all three command modes, and some options are specific to compilation, linking, or packaging.