arm64 Support
Opened this issue · 0 comments
Is Nanolog support arm64 systems?
When I try to compile on arm64 based systems, I am getting errors, although working perfectly fine on x86-64 systems.
Steps I follow
git clone https://github.com/PlatformLab/NanoLog.git . cd runtime make
Complete output of make command.
`rm -f ./.depend
g++ -std=c++17 -g -O3 -I. -ItestHelper -I"../googletest/googletest"/include -MM Cycles.cc Util.cc testHelper/GeneratedCode.cc Log.cc NanoLog.cc RuntimeLogger.cc TimeTrace.cc > ./.depend;
g++ -std=c++17 -g -O3 -I. -ItestHelper -I"../googletest/googletest"/include -c Cycles.cc -o Cycles.o
In file included from Cycles.cc:24:0:
Cycles.h: In static member function ‘static void PerfUtils::Cycles::init()’:
Cycles.h:46:61: error: impossible constraint in ‘asm’
asm volatile("rdtsc" : "=a" (lo), "=d" (hi));
^
Cycles.h:46:61: error: impossible constraint in ‘asm’
asm volatile("rdtsc" : "=a" (lo), "=d" (hi));
^
GNUmakefile:18: recipe for target 'Cycles.o' failed
make: *** [Cycles.o] Error 1`