Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 LLVM 的 ARC 功能对我正在实现的自己的语言进行引用计数(不以 Obj-C 作为后端)
这将非常有帮助,因为编写 GC 的工作量将大大减少
很快,没有。
ARC 是编译器前端功能,而不是运行时工具。不是 LLVM 后端部分。
从概念上讲,ARC 是由 Objective-C 所有权规则和约定自动生成的手动引用计数代码。实际的 RC 由 objc 运行时管理。