General Options

The following command line options are applicable to anysdsccinvocation or display information for the user.

-sds-pf platform_name

Specify the target platform that defines the base system hardware and software, including operation system and boot files. Theplatform_namecan be the name of a platform in the SDSoC™ environment installation, or a file path to a folder containing platform files, with the last component of the path matching the platform name. The platform defines the base hardware and software, including operation system and boot files. Use this option when compiling accelerator source files and when linking the ELF file. Use the–sds-pf-listoption to list available platforms.

-sds-pf-info platform_name

Display general information about a platform. Use the–sds-pf-listoption to list available platforms. The information displayed includes available system configurations that can be specified with the-sds-sys-configsystem_configuration option.

-sds-pf-list

Display a list of available platforms and exit (no other options are specified). The information displayed includes available system configurations that can be specified with the-sds-sys-configsystem_configuration option.

-sds-sys-config configuration_name

Specify the system configuration that defines the software platform used, which includes the target operating system and other settings. The-sds-pf-listand-sds-pfinfooptions can be used to list the available system configurations for a platform. When the-sds-sys-configoption is used, do not specify the-target-osoption. If the-sds-sys-configoption is not specified, the default system configuration is used.

-sds-proc processor_name

Specify the processor name to use with the system configuration defined by the-sds-sys-configoption. A system configuration normally specifies a target CPU, and this option is not required.

-target-os os_name

Specify the target operating system. The selected OS determines the compiler toolchain used, and include file and library paths added by sdscc. os_namecan be one of the following:
  • linux: for the Linux OS. This is the default if the command line contains no-target-osoption
  • standalone: for standalone or bare-metal applications
  • freertos: for FreeRTOS

If the-sds-sys-configsystem_configuration option is specified, do not specify the-target-osoption, because a system configuration itself defines a target operating system. If you do not specify the-sds-sys-configbut do specify the-target-osoption, SDSoC searches for a system configuration with an OS that matches the one specified by-target-os.

-verbose

Print verbose output to STDOUT.

-version

Print thesdsccversion information to STDOUT.

--help

Print command line help information. Note that two consecutive hyphen or dash characters-are used.

The following command line options are applicable only tosdsccinvocations used to compile a source file.

-mno-ir

Suppress the generation of an intermediate representation (IR) for a source file that does not contain hardware accelerators or their callers. This option is not used unless needed to override an error condition during compilation of a specific source file (do not apply this option to every source file), for example IR generation does not handle source files containing Zynq NEON intrinsics. By default, an IR is created for each source file when it is compiled and used in the analysis of the application program.