是否有任何人知道这一错误指的是<代码>gprof? 页: 1 感谢。
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 ...
是否有任何人知道这一错误指的是<代码>gprof? 页: 1 感谢。
很难掌握这么少的信息。 如以下所述,如果你随附你对<条码>gprof的争论,就会出现这种情况:here。 (这很难找到,因为只有谷歌第二点打了你的问题。)
Edit:, 翻一番,核对你的论点。 如果你想要我们检查他们,报告你使用的指挥线,以及生成各种档案。 作为一项规则:we ,可指t guess。
由于这个问题是谷歌的最高结果:
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的结果。
我遇到了同样的问题。 我在汇编可执行的法典后,正在直接执行。 我们需要做以下工作:
采用――pg-g办法对法典进行汇编如下:
gcc -g -pg myfile.c - 我的档案。
不首先使用gprof,即可执行(第一场诉讼产生mon)。
我的档案中,有100、200和400 %是我对我的档案的投入参数。 页: 1
第2步造成mon。 你们需要为这一点提供反馈,并为了创造可起诉人的操作时间。
gprof myfile。 out out
档案将载有可执行的内容。
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 ...
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 ...
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, ...
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 ....
I ve recently set up a MinGW + MSYS environment on my laptop to check how things are with Netbeans C/C++ support. Everything seems to work fine, however, during my testing I have noticed a difference ...
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/...
We can get the type returned by function in gcc using the typeof operator as follows: typeof(container.begin()) i; Is it possible to do something similar for functions taking some arguments, but not ...
Is it possible to create binaries of other platform on Linux? Say I have a program that can be compiled using gcc to .o file but can we use it to output exe that can be run on windows ?