This section describes the AMD Vitis™
compiler command,
v++
, and the various options it supports for building
the device binary. v++
is a standalone command line
utility with three command modes:
-
--compile
(-c
): For launching the HLS or AI Engine compiler modes of thev++
tool to compile C/C++ code into AI Engine kernels and graph applications into a libadf.a file as described in Compiling AI Engine Graph Applications, or PL kernel object files (.xo) as described in Compiling C/C++ PL Kernels -
--link
(-l
): For linking PL kernels(.xo
), AI Engine graph applications (libadf.a), and a target hardware platform (.xpfm) into a device binary (.xclbin), a hardware design (.xsa), or a Vivado export file (.vma) as described in Linking the System -
--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.