Compile your program

From Pigmeo - .NET/Mono/CLI (C#, VB.NET, C++/CLI, Nemerle...) for microcontrollers (PIC, dsPIC, AVR...)

Compile the code

Once you have written your application, compile it as if it were a typical console application, using gmcs or msc. It will generate a .exe file.

If you are using Visual Studio it is recommended to copy all the required libraries to the output path: Select a library in the Solution Explorer, then go to Properties and set "Copy Local" to true.

If you are in linux, from the command line:

gmcs -r:PIC16F877A.dll -out:MyApp.exe *.cs

Compile to assembly language

This step converts your .exe into assembly language for the target architecture

From the command line:

pigmeo MyApp.exe

If there were no errors, nothing will be printed to the console.

Note that you don't need to specify the target architecture, because you've already referenced a device library when compiling

Compile to machine code

Now you have your application converted to assembly language, you can assembly it using any assembler software you want, for example gpasm on linux:

gpasm MyApp.asm