From b766fb30aa0152a0e2197e755cb0290f7b6bdefa Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 30 Oct 2008 02:41:13 +0000 Subject: [PATCH] A clarification. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8717 --- cachegrind/docs/cg-manual.xml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/cachegrind/docs/cg-manual.xml b/cachegrind/docs/cg-manual.xml index 7c1764e005..f65272bbc2 100644 --- a/cachegrind/docs/cg-manual.xml +++ b/cachegrind/docs/cg-manual.xml @@ -807,16 +807,12 @@ interesting line of C code is translated into multiple instructions. To do this, you just need to assemble your -.s files with assembler-level -debug information. gcc doesn't do this, but you can use the GNU -assembler with the --gstabs -option to generate object files with this information, eg: - - - -You can then profile and annotate source files in the same -way as for C/C++ programs. +.s files with assembly-level debug +information. You can use gcc +-S to compile C/C++ programs to assembly code, and then +gcc -g on the assembly code files to +achieve this. You can then profile and annotate the assembly code source +files in the same way as C/C++ source files. -- 2.47.3