摘要:
编译参数CFLAGS: -Os -ffunction-sections -fdata-sections (去掉-g参数,不启动调试) 链接参数LDFLAGS: -Wl,-Map=object.map,--cref,--gc-section 通过上述参数,会在编译和链接是对代码进行优化。 把没有用到的 阅读全文
posted @ 2020-09-03 15:59
duapple
阅读(110)
评论(0)
推荐(0)
摘要:
通过Linux系统调用来完成这个操作,atexit( )和on_exit( )。 atexit( )函数原型: #include <stdlib.h> int atexit (void (*function)(void)); 示例: #include <stdlib.h> #include <std 阅读全文
posted @ 2020-09-03 13:31
duapple
阅读(30)
评论(0)
推荐(0)
浙公网安备 33010602011771号