Getting started

From Pigmeo Development Wiki

Revision as of 11:59, 25 February 2012 by Urriellu (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

What you need for developing the compiler

  • Know C#
  • Basic knowledge of IL/CIL/MSIL ([.NET] Common Intermediate Language)
  • Basic knowledge about internals of .NET and the CLR
  • Know assembly language for the architecture you are developing for

Working on Pigmeo

Make your first compilation using Pigmeo Compiler

  • Get the latest sources
  • You will find examples (programs written in C# or other languages, for microcontrollers) in one folder, and all the source code for the compiler, libraries and tools, in another folder
  • Open one example for microcontrollers using Visual Studio
  • Compile it normally in Release mode
  • Open Pigmeo.sln solution using Visual Studio
  • Set Pigmeo.Compiler as startup project
  • In Visual Studio, open Pigmeo.Compiler/main.cs and change the "DebugExampleID" to indicate which example you want to debug by default (during the development of Pigmeo Compiler, users can choose this using command-line arguments)
  • Compile the entire Pigmeo project (debug is ok)
  • Run in debug mode
  • After a few seconds, a window will appear with all the debug information about the compilation process, including the original .NET assembly being compiler, all the internal steps of the compilation process, and the final assembly code generated for the microcontroller
Personal tools