Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHi, kerri,
I have read the document mnl_niossft.pdf, and the following are excerpted from the pdf file. There are no option for basic block profiling. I use: man nios-elf-gcc and it shows that -a option is availble for nios-elf-gcc. But I failed in using this option when compiling applications. Yes, I am using cygwin version. can I install the software in linux operationg system? I just installed all the software and the gnu tools are installed automatically. There are some functionality constrains when installing the gnu tools in cygwin? We bought the developement board from altera company. However, for research purpose, We need to manipulate nios softcore which niosii is not very suitable. do you work in altera company? I have may questions about nios system. nios-elf-gprof nios-elf-gprof produces an execution profile of a C program. Usage nios-elf-gprof [option(s)] [objfile] gmon.out Options f For more information about gprof, see http://sources.redhat.com/binutils/docs-2....info/index.html (http://sources.redhat.com/binutils/docs-2.12/gprof.info/index.html) Table 16. nios-elf-gprof Options Option Description -C This option causes gprof to print a tally of functions and the number of times each function was called. -q The call graph shows for each function; a tally of which function called nios-elf-gprof and which other functions nios-elf-gpof called. The call graph also gives an estimate of how much time was spent in the subroutines of each function. This data suggests places where functions can be eliminated because of the amount of time they take. -p The flat profile shows the amount of time a program spent in each function and the number of times each function was called. The flat profile provides concise data about which functions burn most of the cycles. -A The annotated source listing is a copy of the program¡¯s source code labeled with the number of times each line of the program was executed.