Usage - 2021.2 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
UG1400
Release Date
2021-12-15
Version
2021.2 English
Note: Cortex®-R5F and A53 toolchains can be used in a similar way.

Compiling

gcc-arm-none-eabi-gcc -c file1.c -I<include_path> -o file1.o
gcc-arm-none-eabi-gcc -c file2.c -I<include_path> -o file2.o

Linking

gcc-arm-none-eabi-gcc -Wl,-T -Wl,lscript.ld -L<libxil.a path> -o 
"App.elf"file1.o file2.o -Wl,--start-group,-lxil,-lgcc,-lc,--end-group

For descriptions of flags used in the commands above, refer to the compiler help, using any of the following commands:

  • --help
  • -v --help
  • --target-help

Compiler Options

Other GNU compiler options that can be applied using Arm® -related flags can be found on the GNU website. These flags can be used in the steps above, as required. All the Arm® GCC compiler options are listed at the link above. However, actual support depends on the target in use (Arm Cortex A9 in this case) and on the compiler toolchain.