Forum Discussion
Altera_Forum
Honored Contributor
12 years agoIn a regular gcc/gprof environment, you can directly invoke the function that writes the gmon.out. The function is called _mcleanup().
Not sure if it works in NIOS2 gcc environment, but it's worth a shot.