-3

Are there other general purpose programming languages besides Objective-C +ARC and Swift which target the llvm and use static compile time Automatic Reference Counting for memory management?

8
  • this doesn't look like a better fit here than it was at Stack Overflow, sorry. See help center Commented Feb 26, 2020 at 12:57
  • @gnat Modified my question to be more precise and removed the swift tag it's not a question about swift! Commented Feb 26, 2020 at 13:55
  • en.wikipedia.org/wiki/LLVM has a list of supported languages that is relatively short. You can go through each one and look at their memory management features. Commented Feb 26, 2020 at 14:37
  • Could you explain what you mean by compile time ARC please? Do you mean ARC elision optimisation at compile time or something else? Commented Feb 26, 2020 at 14:55
  • @Alex Swift works without a garbage collector which decides at runtime which memory is freed like eg. go. In Swift like in Rust it is decided at compile-time, when and which memory is freed , only that the design choices are quite different. Commented Feb 26, 2020 at 15:28

1 Answer 1

0

This is most likely handled by treating Swift references similar to C++ smart pointers, except for slightly different implementation. So there will be very little in LLVM itself.

Objective-C + ARC is very similar.

1
  • Sorry I forget to add Objective-C. Otherwise I would accept this answer! I will correct my question. Objective-C is also mentioned in the cited wikipedia article. Commented Feb 26, 2020 at 15:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.