-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
39 lines (23 loc) · 977 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# HCLIB Overview
HCLIB is a library version of the Habanero-C language.
# Getting Started
## Installation
HCLIB currently supports two runtime backends
- Open Community Runtime (OCR)
- Custom RunTime (crt)
See the `INSTALL.*` files for detailed installation instructions.
## Running HCLIB non-regression tests
cd tests;
./runTests
# Writing programs using HCLIB
HCLIB defines a C-based interface in the `hclib.h` header file.
Just use the include directive in your program to import the interface:
#include "hclib.h"
# Linking with HCLIB
If you have set the `HCLIB_ROOT` and `OCR_INSTALL` environment variable as
described in the `INSTALL` file, you can define the following environment
variables to simplify compiler command line simpler:
export HCLIB_CFLAGS="-I${HCLIB_ROOT}/include"
export HCLIB_LDFLAGS="-L${HCLIB_ROOT}/lib -lhclib"
Linking against HCLIB is then done easily:
gcc -g ${HCLIB_LDFLAGS} ${HCLIB_CFLAGS} your_program.c