TIHan/Ferop


Ferop is a .NET library that allows inline C/C to compile and run on Windows/Linux/OSX. (beta, not production ready)

License: MIT

Language: C


ferop_icon

Ferop is a .NET library that allows inline C/C to compile and run on Windows/Linux/OSX.

iOS and Android support is planned.

Quick Start

F#

open Ferop

[<Ferop>]
[<Header("""#include <stdio.h>""")>]
module Native =
    [<Import; MI(MIO.NoInlining)>]
    let printHelloWorld() : unit = C """printf("Hello World!\n");"""

[<EntryPoint>]
let main args =
    Native.printHelloWorld()
    0

C#

namespace Native
{
    using Ferop;

    [Ferop]
    [Header("#include <stdio.h>")]
    class Native
    {
        [Import]
        public static void PrintHelloWorld()
        {
            Ferop.C (@"printf(""Hello World!\n"");");
        }

        static void Main(string[] args)
        {
            PrintHelloWorld();
            System.Console.Read();
        }
    }
}

VB

Imports Ferop

<Ferop>
<Header("#include <stdio.h>")>
Module Native

    <Import>
    Public Sub PrintHelloWorld()
        Call Ferop.C("printf(""Hello World!\n"");")
    End Sub

    Sub Main()
        Call PrintHelloWorld()
        Console.ReadLine()
    End Sub

End Module

Project Statistics

Sourcerank 6
Repository Size 21 MB
Stars 35
Forks 3
Watchers 4
Open issues 5
Dependencies 0
Contributors 2
Tags 1
Created
Last updated
Last pushed

Top Contributors See all

Will Smith Gauthier Segay

Packages Referencing this Repo

Ferop
Ferop is a .NET library that allows inline C/C to compile and run on Windows/Linux/OSX.
Latest release 1.0.0-beta95001 - Updated - 35 stars

Recent Tags See all

1.0.0.0-beta2 December 09, 2014

Something wrong with this page? Make a suggestion

Last synced: 2016-05-27 19:26:53 UTC

Login to resync this repository