Last active
November 17, 2019 11:42
-
-
Save csabahruska/1cb5a2fad4692cae1af6a63b05b56bc0 to your computer and use it in GitHub Desktop.
Hello world program for Intel Labs Functional Language Research Compiler (FLRC)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
only block comment exists | |
https://github.com/IntelLabs/flrc | |
compile: hrc minimal.mil | |
*) | |
Includes: | |
"stdio" : C | |
{ v1_printf : (CcUnmanaged cdecl; CStr, SInt64) -> () | |
} | |
Externs: | |
Globals: | |
v2_ : CStr = CString("Hello FLRC!\n") | |
v3_main : (CcCode;) -> () = | |
Code^(CcCode;){PINRWTXgrw} : () | |
{ | |
Entry L1 | |
L1() | |
Call(v1_printf) ?{} (v2_, I(0)) -> () L2 {I} | |
L2() | |
Return() | |
} | |
Entry: v3_main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Functional Language Research Compiler (FLRC) was designed to be a general compiler framework for functional languages.
https://github.com/IntelLabs/flrc