View on GitHub

Habanero-C++

A Compiler-free Work-Stealing Library

Writing Habanero-C++ programs

Habanero-C++ defines a C++11-based interface in the hcpp.h header file. Just use the include directive in your program to import the interfaces and import the Habanero-C++ namespace

#include "hcpp.h"
using namespace hcpp;

Compiling Habanero-C++ program

First set the environment variables as mentioned in the README.md file. A sample Makefile for compiling a Habanero-C++ file test.cpp is as shown below:

include $(HCPP_INSTALL)/include/hcpp.mak
all: test

test: test.o
        $(CXX) $(PROJECT_LDFLAGS) -o $@ $^ $(PROJECT_LDLIBS)

test.o: test.cpp
        $(CXX) $(PROJECT_CXXFLAGS) -o $@ -c $<

Executing Habanero-C++ program

Please see the file README.md.