SPRUIG6L January 2018 – March 2025
The C7000 Host Emulation package generally allows
for the use of TI vector types (for example, int16) to be used in
the same way as with the C7000 compiler. Boolean vectors, such as bool16, are also
supported.
However, due to C7000 Host Emulation being written in C++, there are limitations. The following sections discuss and provide examples of these limitations. Where limitations exist, usage and syntax changes may be required.
As with the C7000 compiler, C7000 Host
Emulation enables support for vector data types by default. Instead of using the
--vectypes=off C7000 compiler option to disable vector data type names, to disable
vector data type names that are not prefixed with a double-underscore you
should define the TI_VECTYPES_OFF macro. For example, the __int4
type is always available, but defining TI_VECTYPES_OFF on the command line, such as
with g++ -DTI_VECTYPES_OFF, disables the int4
type. (The syntax to define a macro varies depending on your compiler.)