(1) I’m getting CMake assembler errors such as:
(2) Question: What can I do within the CMake file to correct these errors? My assembly code (in file testing.s) looks something like the following code. I’ve removed a lot of it and am trying to be concise.
#define _ASMLANGUAGE
#include “vxWorks.h”
#include <ash.h>
FUNC_EXPORT(testing)
.text
.align 2
.long 0
.long 1
.globl testing
FUNC_BEGIN(testing)
li r3, 1
ori r4, r4, 0x6789
srw r4, r4, r5
FUNC_END(testing)
(3) My CMakeLists.txt looks something like:
cmake_minimum_required (VERSION 2.6)
project(testing LANGUAGES CXX ASM)
set(CMAKE_CXX_FLAGS “${CMAKE_CXX_FLAGS} -Wall -g -std=c++0x -Wextra -Wpedantic”)
set(dir3 …/…/…/util/dir3)
add_executable(testing
${dir3}/one.cpp
${dir3}/testing.s
)
(4) File one.cpp looks something like —
extern “C” int testing(void); //… testing(); //…
Tamar Christina said:That's x86 assembly not Arm
Mike001 said:you are correct
So if it's not ARM, and you know it, why are you posting in the ARM forum?