2010-08-19 117 views

回答

0

你忘了包括你的命令行......我假設-fprofile-arcs。輸出文件位置在gcc手冊頁中有描述:

 
    ... Each object file's auxname is 
    generated from the name of the output file, if explicitly speci- 
    fied and it is not the final executable, otherwise it is the base- 
    name of the source file. In both cases any suffix is removed (e.g. 
    foo.gcda for input file dir/foo.c, or dir/foo.gcda for output file 
    specified as -o dir/foo.o). 

因此,輸出會與目標文件一起寫入目錄中。如果將源代碼直接編譯爲可執行文件,則可以在編譯器編寫可執行文件的目錄中找到分析輸出。

+0

對不起,該命令是$ gcc -o -dv prog.cpp -o prog.cpp – Arasteh 2010-08-19 09:07:09