Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

programming
compiler
virtual machine

What is an LLVM?

Educative Answers Team

LLVMlow-level virtual machine is a library with a collection of reusable, modular compiler toolchain technologies. These tools can be used to develop the front end for any programming language and the back end for any instruction set architecture.

svg viewer
LLVM logo

LLVM provides you with tools to programmatically create machine-native code. You can use the API to generate instructions in a format called an intermediate representation.

Intermediate representation, or IR, is a language-independent representation that serves as a portable, high-level assembly language that can be further optimized.

LLVM can compile the IR into a standalone binary or perform a JIT (just-in-time) compilation on the code (ex: as an interpreter for the language).

svg viewer
A summary of the LLVM compiler infrastructure

LLVM is written in C++ and is designed for compile-time, link-time, run-time, and idle-time optimization. Popular languages with compilers that use LLVM include Fortran, Haskell, Julia, Kotlin, Lua, Objective-C, OpenGL, Rust, and Swift.

RELATED TAGS

programming
compiler
virtual machine
Copyright ©2022 Educative, Inc. All rights reserved
RELATED COURSES

View all Courses

Keep Exploring