Hello, You have to link m5op_arm.S, not compile it. There should be a flag (LDFLAGS maybe) where you can pass m5op_arm.S. Another possibility is compiling it as a library. Check utils/m5/Makefile.ARCH.
Regards, -- Fernando A. Endo, Post-doc INRIA Rennes-Bretagne Atlantique France 2017-02-23 11:20 GMT+01:00 nocua <[email protected]>: > Hello Everyone, > > I created a pseudo instruction similar to m5_dumpstats() and I want to run > it inside my OpenMP application (PARSEC3.0), without using the hooks > library. > > I'm using qemu with an ARM 32bits architecture. > > So I did the following: > > 0. Coded my pseudo instruction in m5op.h, m5.c and m5op_arm.S > > 1. Add my pseudo-instruction (m5_test()) inside the source code. > > 2. Add the "CXXFLAGS= -I($PATH)/m5/ ($PATH)/m5/m5op_arm.S -static" in the > $(PARSECDIR)/config/gcc-openmp.bldconf > > 3. Use the parsecmgmt to generate the executable: parsecmgmt -a build -c > gcc-openmp -p blackscholes > > With blackscholes the executable is generated. However, with other > benchmarks, I'm facing a problem during compilation: > > g++: cannot specify -o with -c, -S or -E with multiple files > > Which I assume arises due to the way parsecmgmt handles the files > inclusion/creation. Then I imagine, I should add the m5op_arm.S file in a > different way but I'm not sure how. > > Does anyone have an idea on how to proceed? > > Thanks in advance. > > Kind Regards, > > Alejandro NOCUA > CNRS Post-doctoral Researcher > LIRMM > 161 Rue Ada > 34095 - Montpellier > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
