简体   繁体   English

03优化后如何列出任何c程序使用的所有库函数

[英]How to list all the library functions used by any c program after 03 optimization

I can get the name of all user functions in assembly file, and using gprof. 我可以在汇编文件中使用gprof获取所有用户函数的名称。 But I want to know how many time FFT or any other benchmark called sin function, print function and other library functions. 但是我想知道多少次FFT或其他称为sin函数,print函数和其他库函数的基准。

If you're dynamically linking and running on Linux, you can use ltrace : 如果要动态链接并在Linux上运行,则可以使用ltrace

ltrace is a program that simply runs the specified command until it exits. ltrace是一个仅运行指定命令直到退出的程序。 It intercepts and records the dynamic library calls which are called by the executed process and the signals which are received by that process. 它截获并记录由执行的过程调用的动态库调用以及该过程接收的信号。 It can also intercept and print the system calls executed by the program. 它还可以拦截并打印程序执行的系统调用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何列出* .so C库中的所有函数 - How to List all functions in a *.so C library 在静态 GCC 编译的 C 程序中获取所有函数的详尽列表(除了 .c 文件中使用的函数) - Get an exhaustive list of all the functions (other than the functions used in the .c file) in a statically GCC compiled C program 如何编译C程序而不进行任何优化 - How to compile C program without any optimization 有没有办法找到 c 程序中使用的所有函数? - Is there a way to find all the functions used in a c program? 从C ++程序中的C库调用函数时是否有陷阱? - Are there any pitfalls when calling functions from a C library in a C++ program? 如何编译 c 程序使其不依赖任何库? - How to compile c program so that it doesn't depend on any library? 在C / C ++中,通过int main()返回0,在任何操作系统上,都会清除程序在任何(RAM,缓存或任何......)内存中使用的所有资源吗? - Does return 0 by int main() in C/C++, on any OS, clears off all the resources used by the program in any(RAM, cache or any…) memory? 确定C中库函数使用的空间 - Determining the space used by library functions in C 如何创建一个链接器只链接我的程序使用的函数的库? - How do I create a library where the linker only links functions used by my program? 如何找出程序或其他库使用共享对象的哪些功能? - How do I find out which functions of a shared object are used by a program or an other library?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM