# Building LLVM in 90 seconds using Amazon Lambda

DevFeed: [Building LLVM in 90 seconds using Amazon Lambda](<https://devfeed.tech/articles/building-llvm-in-90-seconds-using-amazon-lambda-21944.md>)

Original publisher: [Read original article](<https://blog.nelhage.com/post/building-llvm-in-90s/>)

Author: Nelson Elhage

Published: 2021-05-21T02:00:28Z

Content type: article

Language: en

Sources: [Nelson Elhage](<https://devfeed.tech/sources/nelson-elhage.md>)

Topics: [LLVM](<https://devfeed.tech/topics/llvm.md>), [llama](<https://devfeed.tech/topics/llama.md>), [amazon](<https://devfeed.tech/topics/amazon.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [C](<https://devfeed.tech/topics/c.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>)

Tags: [amazon](<https://devfeed.tech/tags/amazon.md>), [c](<https://devfeed.tech/tags/c.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [compute](<https://devfeed.tech/tags/compute.md>), [llama](<https://devfeed.tech/tags/llama.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [s3](<https://devfeed.tech/tags/s3.md>)

## AI overview

The article describes Llama, a tool that offloads C and C++ compilation to Amazon Lambda. In the reported test, a stripped-down clang and LLVM build completed in about 80 seconds on a 12-core, 24-thread AMD Ryzen 9 3900 system, at an estimated cost of around forty cents.

## Source excerpt

Last week, Frederic Cambus wrote about building LLVM quickly on some very large machines, culminating in a 2m37s build on a 160-core ARM machine. I don't have a giant ARM behemoth, but I have been working on a tool I call Llama, which lets you offload computational work - including C and C++ builds - onto Amazon Lambda. I decided to see how good it could do at a similar build.