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.

PROCESSOR-SDK-AM62A: TI CGT ARMLLVM - Are C11 Threads Supported?

Part Number: PROCESSOR-SDK-AM62A

Tool/software:

Hello,

I'd like to know whether the TI Arm Clang Compiler Tools fully support C11.

According to the documentation:

https://software-dl.ti.com/codegen/docs/tiarmclang/compiler_tools_user_guide/latex/TI_Arm_Clang_Compiler_Tools_User_Guide.pdf

C11 is, in fact, supported - including thread support.

However, following the tutorial at:

https://software-dl.ti.com/codegen/docs/tiarmclang/compiler_tools_user_guide/getting_started_guide/building_simple_application.html

and compiling the following source:

#include <stdio.h>
#include <stdlib.h>
#include <threads.h>

int fn(void *args) {
        return 0;
}

int main(void) {
    thrd_t a;
    thrd_create(&a, fn, NULL);
    return 0;
}

with the lnkme.cmd file from the tutorial and the command:

~/ti/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang --std=c11 -pedantic -v -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 test.c -o test.out -Xlinker -llnkme.cmd -Xlinker -mtest.map

returns an error - threads.h does not exist.

Grep-ing into the compiler's installation folder shows that threads.h, in fact, does not exist within the installation.

The compiler was downloaded from:

https://www.ti.com/tool/download/ARM-CGT-CLANG/3.2.2.LTS

---

Does the TI ARM Clang compiler support C11 - specifically, does the compiler include thread support?

Thank you for your time!

Best regards,

Hristo