You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/design/app.rst
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1691,14 +1691,15 @@ console when main part code is executed.
1691
1691
1692
1692
.. note::
1693
1693
1694
-
* Introduced in Nuclei SDK 0.5.1, worked with Nuclei Studio >= 2024.02
1694
+
* **WARNING** GCC 14 with nuclei sdk code coverage not working, need to modify ``Components/profiling/gcov.c``, changes need to be made like this https://github.com/Nuclei-Software/nuclei-sdk/commit/5aaae0d5a7
1695
+
* Introduced in Nuclei SDK 0.6.0, worked with Nuclei Studio >= 2024.02
1695
1696
* Using gprof or gcov introduces instrument code into the original program,
1696
1697
necessitating additional memory to store the collected data. This results in
1697
1698
a slight increase in the program's memory footprint compared to its uninstrumented counterpart.
1698
1699
* It cannot be directly used in command line mode, you should use it in Nuclei Studio.
1699
1700
* Please check ``README.md`` about gcov and gprof support in https://github.com/Nuclei-Software/nuclei-sdk/tree/master/Components/profiling
1700
1701
1701
-
Import or download Nuclei SDK 0.5.1 or later release NPK in Nuclei Studio, and then create a
1702
+
Import or download Nuclei SDK 0.6.0 or later release NPK in Nuclei Studio, and then create a
1702
1703
project called ``demo_profiling`` based on ``app-nsdk_demo_profiling`` using
1703
1704
``Create Nuclei RISC-V C/C++ Project`` Wizard as below:
1704
1705
@@ -1712,6 +1713,7 @@ it is the core algorithm of this example, then you just need to do the following
1712
1713
1713
1714
- Right click on the ``application`` folder, and click ``Properities``, and add extra options
1714
1715
in ``C/C++ Build`` -> ``Settings`` -> ``GNU RISC-V Cross C Compiler`` -> ``Miscellaneous`` -> ``Other compiler flags``.
1716
+
1715
1717
- If you want to do gprof, you need to add ``-pg`` option.
1716
1718
- If you want to do gcov, you need to add ``-coverage`` option.
1717
1719
- Open ``main.c``, and find ``TODO`` item, and comment ``gprof_collect(2);`` or ``gcov_collect(2);`` based on
0 commit comments