Cześć,
Jak zintegrować wstawki asm w CLion?
Z góry dziękuję
Log z CLion:
====================[ Build | rpiTime | Debug ]=================================
/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake --build /Users/mikolaj/CLionProjects/rpiTime/cmake-build-debug --target rpiTime -- -j 4
Scanning dependencies of target rpiTime
[ 50%] Building CXX object CMakeFiles/rpiTime.dir/main.cpp.o
/Users/mikolaj/CLionProjects/rpiTime/main.cpp:19:7: error: brackets expression not supported on this target
asm("\
^
<inline asm>:1:19: note: instantiated into assembly here
mov eax, [ebp + 8]
^
/Users/mikolaj/CLionProjects/rpiTime/main.cpp:21:1: error: brackets expression not supported on this target
add eax, [ebp + 12] \n\
^
<inline asm>:2:18: note: instantiated into assembly here
add eax, [ebp + 12]
^
/Users/mikolaj/CLionProjects/rpiTime/main.cpp:22:1: error: unknown use of instruction mnemonic without a size suffix
add eax, 1 \n\
^
<inline asm>:3:9: note: instantiated into assembly here
add eax, 1
^
/Users/mikolaj/CLionProjects/rpiTime/main.cpp:23:1: error: brackets expression not supported on this target
mov [ebp-4], eax \n\
^
<inline asm>:4:13: note: instantiated into assembly here
mov [ebp-4], eax
^
4 errors generated.
make[3]: *** [CMakeFiles/rpiTime.dir/main.cpp.o] Error 1
make[2]: *** [CMakeFiles/rpiTime.dir/all] Error 2
make[1]: *** [CMakeFiles/rpiTime.dir/rule] Error 2
make: *** [rpiTime] Error 2
brackets expression not supported on this target
pojawia się tylko podczas kompilacji na ARMy. Sprawdź jak masz poustawiane architektury procesorów w projekcie.