0

Is there a some argument to tell gcc just to return all functions given in a c/h-file.

so e.g. gcc xyz.c -functionnames should give:

  • uint8_t abc(uint8_t number)
  • uint8_t efg(uint8_t number)
  • ...
LPs
  • 16,045
  • 8
  • 30
  • 61
user69453
  • 1,279
  • 1
  • 17
  • 43
  • 2
    No, you can use doxygen for that. – Klemens Morgenstern May 31 '16 at 09:27
  • could you elaborate? i searched for that but didn't find the appropiate command line + arguments for that purpose – user69453 May 31 '16 at 09:29
  • You need a config file for doxygen and then just use EXTRACT_ALL=yes. Just look up some examples on how to use doxygen. – Klemens Morgenstern May 31 '16 at 09:30
  • i already have set up my doxygen and it works...but i wanted to use this output in another program and for that purpose html output is not good/nicely to use – user69453 May 31 '16 at 09:33
  • Well, if you could elaborate on your purpose, maybe I could help you. Doxygen can also generate xml, where you can get the function names from. Alternatively you can use nm on the binary, but then you loose the function signature and only have the names. – Klemens Morgenstern May 31 '16 at 09:35

0 Answers0