Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TIHan/Ferop
Ferop is a .NET library that allows inline C/C++ to compile and run on Windows/Linux/OSX. (beta, not production ready)
https://github.com/TIHan/Ferop
Last synced: 3 months ago
JSON representation
Ferop is a .NET library that allows inline C/C++ to compile and run on Windows/Linux/OSX. (beta, not production ready)
- Host: GitHub
- URL: https://github.com/TIHan/Ferop
- Owner: TIHan
- License: mit
- Created: 2014-03-30T18:02:25.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-12-06T20:38:49.000Z (about 5 years ago)
- Last Synced: 2023-07-30T09:47:52.655Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 21 MB
- Stars: 35
- Watchers: 5
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCompiler - Ferop
README
![ferop_icon](https://github.com/TIHan/Ferop/blob/master/ferop_icon.png?raw=true)
=Ferop is not maintained but still exists as a reference to the idea of having inline C/C++ code inside of .NET
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#
```fsharp
open Ferop[]
[""")>]
module Native =
[]
let printHelloWorld() : unit = C """printf("Hello World!\n");"""[]
let main args =
Native.printHelloWorld()
0
```C#
```csharp
namespace Native
{
using Ferop;[Ferop]
[Header("#include ")]
class Native
{
[Import]
public static void PrintHelloWorld()
{
Ferop.C (@"printf(""Hello World!\n"");");
}static void Main(string[] args)
{
PrintHelloWorld();
System.Console.Read();
}
}
}
```VB
```vb
Imports Ferop")>
Module Native
Public Sub PrintHelloWorld()
Call Ferop.C("printf(""Hello World!\n"");")
End SubSub Main()
Call PrintHelloWorld()
Console.ReadLine()
End SubEnd Module
```