0
点赞
收藏
分享

微信扫一扫

how is lto implemented in gcc

野见 2022-04-14 阅读 48
linux
Link time optimization is implemented as a GCC front end for a bytecode representation of GIMPLE that is emitted in special sections of .o file

detail:
	This is implemented as the GCC front end lto1 in lto/lto.c. 
		When collect2 detects a link set of .o / .a files with LTO information and the -flto is enabled
		it invokes lto1 which reads the set of files and aggregates them into a single translation unit for optimization.
举报

相关推荐

0 条评论