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.

Does cgtools linker support C++ comments in linker command file?

Hi all,

Does the cgtools linker support C++ comments in the linker command file?

It seems as if my version (5.2.2) supports C++ comments (//)  in the linker command file, but I can't find if this is officially supported.

  • The older versions of linker did not support C++ style comments in linker command file, but it appears that the new COFF linker (included with v5.1.0 and higher of C2000 cgtools) does support the "//" style comments.

  • Yes, that's what I also observe, but I did not find this in the release notes of 5.1.0 or higher.

  • So are C++ comments in linker command files a "documented behaviour" in cgtools 5.2.1 and higher?

    I am asking because in the LINKER_README.txt, there is a section about "users relying on undocumented old linker behavior" that is now changed.

    So can I use C++ comments in linker command files without having to change them when using a newer version?