GithubHelp home page GithubHelp logo

huleg / llvm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avr-llvm/llvm

0.0 2.0 0.0 461.59 MB

[MERGED UPSTREAM] AVR backend for the LLVM compiler library

License: Other

CMake 0.26% Shell 0.06% Go 0.09% C++ 43.07% OCaml 0.23% Python 0.44% C 0.24% SourcePawn 0.01% Objective-C 0.31% LLVM 43.98% Mirah 0.42% Assembly 10.85% Roff 0.01% Perl 0.02% Emacs Lisp 0.01% CSS 0.01% Batchfile 0.01% Vim Script 0.01%

llvm's Introduction

AVR-LLVM

Build Status

NOTE: The AVR backend has now been completely upstreamed into LLVM trunk. Development will no longer occur on this repository - it will occur directly in LLVM trunk

See the Wiki for more information.

An LLVM backend for the Atmel AVR microprocessor architecture.

Currently AVR-LLVM can generate assembly files and ELF object files.

As the project is still very much in development, it is likely that you will encounter bugs. If you think you've found one, submit an issue - we're aiming for AVR-LLVM to eventually be a production-quality compiler backend, so bugs will not be tolerated.

AVR-related code can be found in lib/Target/AVR.

Related projects

Features

  • Assembly or machine code generation
  • Support for the entire instruction set
  • ELF object file support
  • AVR-GCC compatability
  • Permissive license

History

The original project started several years ago and then it was abandoned. It is hosted on SourceForge.net.

A fork was created which updated the project to a more recent version of LLVM, which is located on GitHub.

This repository is a fork of the updated version.

The AVR-LLVM project aims to keep to code updated (so that it's always compatible with LLVM master), and also to improve the backend.

Goals

We would like to be able to compile any program that AVR-GCC can, have comparable diagnostics, and on-par performance.

Ideally, the avr-llvm project would provide a drop-in 100% compatible replacement for AVR-GCC and binutils.

Contributing

Any improvement, however minor, is welcomed :)

Take a look at the issues page for goals and bugs that currently exist. Pull requests are very welcome!

For more information, please read the Contributing page on the Wiki.

Submitting Bugs

Bugs can be reported on the GitHub issue tracker.

It is useful to submit small testcases (generally LLVM IR files) that reproduce the bug. We prefer IR files over C/C++ sources for several reasons:

  • They often require headers or libraries that we must also install (e.g. Arduino)
  • They require building clang (which we don't often do, as it takes a long time)
  • They are smaller and self-contained

If you want to submit a C/C++ testcase, please convert into IR form first.

To do this:

# compile `main.c` into `main.ll`
clang -S -emit-llvm main.c -o main.ll

This will add all included headers, and concatenate it into one simple file.

Good luck!

llvm's People

Contributors

ahatanak avatar arsenm avatar asl avatar atrick avatar bcardosolopes avatar bob-wilson avatar chandlerc avatar chapuni avatar cunningbaldrick avatar d0k avatar ddunbar avatar dexonsmith avatar dwblaikie avatar echristo avatar espindola avatar isanbard avatar lattner avatar lhames avatar majnemer avatar mbrukman avatar nlewycky avatar resistor avatar rksimon avatar rnk avatar rotateright avatar sampo3k avatar stoklund avatar tnorthover avatar topperc avatar tstellaramd avatar

Watchers

 avatar  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.