I have complete project in C, which can be built with gcc or Visual Studio. There are no calls to external libraries.
I would like to know how many functions there
With gcc:
gcc
$ nm elf_file | grep "T " | grep -v " _" | wc -l
Note that gcc can inline some functions even with optimizations disabled, so you should compile with:
-O0 -fno-builtin -fno-inline-functions-called-once
(-finline-functions-called-once is enabled by default even in -O0)
-finline-functions-called-once
-O0