Skip to content
forked from NETMF/llilum

Development Platform for MSIL and UWP apps targeting Micro Controllers. Part of the .NET Micro Framework family.

License

Notifications You must be signed in to change notification settings

JohnySeven/llilum

 
 

Repository files navigation

Welcome to LLILUM!

A development platform for IL based languages and UWP applications targeting Cortex-M processors.

Why LLILUM

Cortex-M processors are heavily resource contrained, and yet, because of their low power consumption and optimized interrupt dispatching, are arguably the most suitable solution for IoT applications. Existing development platfoms and tool chains that target this space are based on C/C++, and no native support for higher level languages and RAD environment exist that can take advantage of what a Cortex-M HW can offer. Previous efforts in this space include .NET Micro Framework and other Java solutions, which are sometimes too large in code size, too slow or too difficult to extend for mainstream adoption. LLILUM implements a scalable alternative to C/C++ that features comparable code size and speed, as well as easy extensibility from within the Visual Studio development tool chain.

What is LLILUM

LLILUM is an optimizing compilation tool chain that, just like .NET Micro Framework, is entirely based on CLI. LLILUM relies on the well known development experience in Visual Studio to transform source code into MSIL, and then into an intermediate represenation (IR) that is optmized for size and speed, taking into account the target platform constraints, such as memory layout, native ISA, calling convention, and, first and foremost, the application requirements. The method and type closure is optimized based on application usage of system facilities, and the type system is morphed to shrink into the smallest possible footprint. Standard features of CLI environments, e.g. type system (TS) introspection, garbage collection (GC) and a full featured multi-threaded execution engine (MTEE) are provided.

State of the Art

LLILUM can generate runnable images for ARMv4 and ARMv5 ISA, with partial FP support. We could extend the code generator to support ARMv7-M but we decided to leverage LLVM instead, hoping we can get a wider set of targets over time. The current incarnation of the system successfully uses LLVM to target a Cortex-M ISA with a fully functional Type System. GC and MTEE are in the works.

Supported Languages

Currrent target language is C#; extensions to Python and possibly TypeScript are in the works. We are also targeting UWP app development, so that it will be possible to share code between a Windows 10 device app and a Cortex-M micro processor. Welcome to One Core!

Further reading

Please see the following documents in our wiki:

  1. Detailed system description
  2. Build System
  3. Front End Configuration
  4. Repo layout
  5. Setup and build instruction
  6. Build and run test demo
  7. Performance considerations
  8. Next steps

Acknowledgment

A big thanks to Miguel Perez Martinez for helping bringing up this proof of concepts with exceptional dedication, perseverance and competency. An even bigger thanks to D.M., who created the vast majority of this codebase single-handedly.

About

Development Platform for MSIL and UWP apps targeting Micro Controllers. Part of the .NET Micro Framework family.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 98.3%
  • C++ 1.3%
  • Other 0.4%