Skip to content

exeme-project/llvm-ir-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LLVM IR Examples

Environment Setup

  • Install the latest version of LLVM.
  • Make sure that you select the option to add LLVM to your PATH.

Clone the Repository

git clone https://github.com/exeme-project/llvm-ir-examples

Building

Note

These examples assume your command prompt is open in the examples directory.

Building a Specific Example

Note

These examples are for the hello-world example. Replace hello-world with the name of the example you want to build.

Windows

cd hello-world
clang main.ll -o main.exe
main.exe

Linux

cd hello-world
clang main.ll -o main
./main

Building All Examples

Windows

build-all.bat

Linux

./build-all.sh

Releases

No releases published

Packages

No packages published