Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

头文件中的库函数如何处理 #44

Answered by Yorkking
hodanna7 asked this question in Q&A
Discussion options

You must be logged in to vote

那些函数就当成外部导入的,对应的 IR 类似这样的:

declare void @_sysy_putch(i32)

对应的 LLVM 的 API 其实和本地函数一样,只不过后面不需要再对一来生成的 Function 再创建基本块插入函数内部代码就好了。


520 不过节?😋 520快乐!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hodanna7
Comment options

Answer selected by hodanna7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants