Hi Anouar,

It looks like you're getting a linking error. Make sure that you either
include the appropriate assembler (.S) file in your compiling step, or
assemble the .S file and link the appropriate object (.o) file.

Cheers,
Jason

On Sun, Aug 14, 2016 at 11:36 AM anoir nechi <anoirne...@gmail.com> wrote:

> Hi
>
> i have a C application in which i want to see how much cycles a loop can
> take to finish ... So someone advised me to use "m5_dumpreset_stats()".
>
> So, I did the following:
>
> #include "/util/m5/m5op.h"
>
> void foo()
> {
>    m5_dumpreset_stats(0,0);
>        /* Loop to measure */
>    m5_dumpreset_stats(0,0);
> }
>
> but when i build the project using a makefile with eclipse i get this
> error:
> undefined reference to `m5_dumpreset_stats'
>
> what i did wrong please and how can i fix it ??
> Thank you
> PS: joined you will find the makefile i used
>
> --
> *Anouar NECHI*
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to