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.

Using Compiler Options

Hi,

   I am using TI compiler cl6x v6.1.8.

I need to know the order of the compiler options that we can supply to cl6x. Is there any precedence and particular order for options.

If i pass O3 option and then O2 option then which one compiler will consider?

And one more doubt is thet can i use small letters instead of capital letters for option -On (i.e o2 instead of O2), will it work like this?

Thanks in advance

Thanks & Regards

Praveen Aruru

  • Aruru Praveen said:

    If i pass O3 option and then O2 option then which one compiler will consider?

    The compiler will use the last one in the list, so in this case -O2 will be picked up.

    Aruru Praveen said:
    can i use small letters instead of capital letters for option -On (i.e o2 instead of O2), will it work like this?

    Yes, -o2 will work. But case insensitivity may not be supported in future releases. In general, it is best to check the help by running cl6x --help and running the options as displayed there.