You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Cédric Pasteur 4e5617588c Updated the example 14 years ago
..
README Updated the example 14 years ago
imports.ept Updated the example 14 years ago
mathext.c Updated the example 14 years ago
mathext.epi Updated the example 14 years ago
mathext.h Updated the example 14 years ago

README

This example show how to import an external function written in C in an Heptagon program.

- The .epi file contains the signature of the function in Heptagon.
- Only functions with no side effects can be safely imported.
- The imported function must have the same calling convention as generated code (inputs given by value, outputs in a f_out structure).
- The generated code will include "mathext.h", that should define the step function

To make it work:
   heptc mathext.epi
   heptc imports.ept
   gcc -std=c99 -I . mathext.c imports_c/*.c -o imports