English 中文(简体)
gprof:在阅读第48/271618093本书后出现意想不到的EOF?
原标题:gprof: unexpected EOF after reading 48/271618093 bins?
  • 时间:2011-01-02 19:32:18
  •  标签:
  • gcc
  • gprof

是否有任何人知道这一错误指的是<代码>gprof? 页: 1 感谢。

最佳回答
问题回答

由于这个问题是谷歌的最高结果:

You probably ran gprof the wrong way compile with the -pg flag execute your binary it will also output a "gmon.out" file

之后:

gprof {executable} gmon.out > profile

“引人瞩目的”文件应当包含gprof的结果。

我遇到了同样的问题。 我在汇编可执行的法典后,正在直接执行。 我们需要做以下工作:

  1. 采用――pg-g办法对法典进行汇编如下:

    gcc -g -pg myfile.c - 我的档案。

  2. 不首先使用gprof,即可执行(第一场诉讼产生mon)。

    我的档案中,有100、200和400 %是我对我的档案的投入参数。 页: 1

  3. 第2步造成mon。 你们需要为这一点提供反馈,并为了创造可起诉人的操作时间。

    gprof myfile。 out out

档案将载有可执行的内容。





相关问题
gcc -fPIC seems to muck with optimization flags

Following along from this question: how-do-i-check-if-gcc-is-performing-tail-recursion-optimization, I noticed that using gcc with -fPIC seems to destroy this optimization. I am creating a shared ...

Generate assembler code from C file in linux

I would like to know how to generate assembler code from a C program using Unix. I tried the gcc: gcc -c file.c I also used firstly cpp and then try as but I m getting errors. I m trying to build an ...

Getting rid of pre-compiled headers

OK, I have old Metrowerks code for Mac and Windows where the previous developer used pre-compiled headers for every project that this code base builds. How does one get rid of Pre-compiled headers, ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

How to compile for Mac OS X 10.5

I d like to compile my application for version 10.5 and forward. Ever since I upgraded to Snow Leopard and installed the latest XCode, gcc defaults to 10.6. I ve tried -isysroot /Developer/SDKs/...

热门标签