This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DSP Compiler C++ 11 support

Champs,

Is TI planning support for the C++11 in the C6000 DSP compiler and if yes, what is the timeline?

Thanks

Michael

  • Please see e2e.ti.com/.../420749
    The same answer applies to all targets.
    What specific features of C++11 do you need?
  • There are a few things that really improve code quality (reducing opportunities for bugs) and some things that are improvements to readability but are things that can be done currently.

    In the first group there are:
    - std::unique_ptr, shared_ptr – these help with memory management and ownership/use of pointers
    - static_assert (and type traits) – compile time checking and validation
    - “Uniform initialization” – removes the uncertainty of whether an object is being instantiated or a function defined
    - Override keyword – ensures correct virtual function override. In C++03 if you spelled the function wrong or used an different type for a parameter, you would get a new function, in C++11 with “override”, the compiler would give an error.
    - nullptr – since “0” could be a valid value, having a specifically defined null pointer is useful

    In the second, nice to have, group:
    - built in threading support
    - “auto”
    - Lambda functions
    - Additions to the standard library
    - Initializer lists
    - Range based for loop
    - Variadic templates
  • I'm also looking for C++11 support for our DSP compiler and came across this thread.  I'm curious if there is partial support already or in the near future, i.e. is that why Michael was being asked about specific features of C++11?  Perhaps to turn the question the other way, what features of C++11 exist in the TI compiler now or are planned for the next 12 months?

  • Brad Griffis said:
    I'm curious if there is partial support already or in the near future

    No.

    Brad Griffis said:
    is that why Michael was being asked about specific features of C++11?

    No.  This was just an opportunity to understand what C++11 features our customers find compelling.

    Brad Griffis said:
    what features of C++11 exist in the TI compiler now

    None.

    Brad Griffis said:
    or are planned for the next 12 months?

    Support for C++11 continues to be on our roadmap.  Things are farther along than before.  But we still have no firm plans to announce.

    Thanks and regards,

    -George