This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error: #1113: Inline assembler not permitted when generating Thumb code

Hi,

i want use uSTL library with FreeRTOS. When I compiling i get the error:

..ustl/uutility.h(356): error: #1113: Inline assembler not permitted when generating Thumb code

The code(linie 356 is: asm("":+g... ):

template <typename DEST, typename SRC>
inline DEST noalias (const DEST&, SRC* s)
{
    asm("":"+g"(s)::"memory");
    union UPun { SRC s; DEST d; };
    return (((UPun*)(s))->d);
}

Do you have same idea how I can solve this problem?