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.

C66x compiler with long long variable comparison

Champs

I want to know how if compiler can do  two 64-bit long long variable comparison. I have defined two variables as ‘long long’ (i.e. 64-bit entity)

If I do comparison such as “if (a == b) “ for these two variables does it work? Does compiler understand to translate into all 64-bit comparison?

I looked in compiler user guide but didn’t see an answer one way or other.

 

Any help would be great.

 

Thanks

 

Regards

Mohsen

  • Yes, it works.

    The user's guide does not document how the compiler translates this into machine instructions; the compiler reserves the right to use any legal sequence of instructions that will get the job done.

    You can see how the compiler translates this into machine instructions by writing a simple function which only performs the comparison, compiling with the --keep_asm compiler option, and examining the output assembly code.