Giter VIP home page Giter VIP logo

ippaveln / mapping-high-level-constructs-to-llvm-ir Goto Github PK

View Code? Open in Web Editor NEW

This project forked from f0rki/mapping-high-level-constructs-to-llvm-ir

0.0 0.0 0.0 256 KB

A guide that explains how high level programming language constructs are mapped to the LLVM intermediate language.

Home Page: https://mapping-high-level-constructs-to-llvm-ir.readthedocs.io

License: Other

C++ 7.95% Python 15.88% Rust 0.52% Makefile 1.57% LLVM 72.67% Batchfile 1.09% Dockerfile 0.31%

mapping-high-level-constructs-to-llvm-ir's Introduction

Mapping High Level Constructs to LLVM IR

Click here to read the book on readthedocs.org

About

This is a gitbook dedicated to providing a description on how LLVM based compilers map high-level language constructs into the LLVM intermediate representation (IR).

This document targets people interested in how modern compilers work and want to learn how high-level language constructs can be implemented. Currently the books focuses on C and C++, but contributions about other languages targeting LLVM are highly welcome. This document should help to make the learning curve less steep for aspiring LLVM users.

For the sake of simplicity, we'll be working with a 32-bit target machine so that pointers and word-sized operands are 32-bits. Also, for the sake of readability we do not mangle (encode) names. Rather, they are given simple, easy-to-read names that reflect their purpose. A production compiler for any language that supports overloading would generally need to mangle the names so as to avoid conflicts between symbols.

Contributing

The repository for this document is hosted on github. All contributions are welcome. If you find an error file an Issue or fork the repository and create a pull-request.

License

UNLESS OTHERWISE NOTED, THE CONTENTS OF THIS REPOSITORY/DOCUMENT ARE LICENSED UNDER THE CREATIVE COMMONS ATTRIBUTION - SHARE ALIKE 4.0 INTERNATIONAL LICENSE

https://creativecommons.org/licenses/by-sa/4.0/

https://creativecommons.org/licenses/by-sa/4.0/

a-quick-primer/index basic-constructs/index control-structures/index object-oriented-constructs/index exception-handling/index advanced-constructs/index interoperating-with-a-runtime-library/index interfacing-to-the-operating-system/index epilogue/index appendix-a-how-to-implement-a-string-type-in-llvm/index

mapping-high-level-constructs-to-llvm-ir's People

Contributors

archfrog avatar chocolateloverraj avatar contrun avatar csukuangfj avatar f0rki avatar floppadev avatar hexcoder- avatar higuoxing avatar ivanrodriguez3753 avatar thautwarm avatar winux138 avatar yurysolovyov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.