f9be7230278e1909580350d92a912ec3bee633ab
[libfirm] / firmjni / README
1
2
3 Call
4   sh build_firm_jni
5 to generate a Java native interface for firm.
6
7 This script still contains various IPD specific settings,
8 e.g. oaths to the header files needed for JNI.  This will be changed
9 at some point.
10
11 Generating the JNI requires various syntactic properties of the
12 header files that restrict legal C.
13
14 Do not use methods that generate a non null terminated String
15 from Idents (as idToStr).  This will probably cause a segmentation
16 fault.
17
18 Some methods generated might not work yet.  Please report this to
19 goetz@ipd.info.uni-karlsruhe.de
20
21 For now _all_ enumerators are generated into _all_ classes.
22 This results from deficiencies in the crecoder and will be removed
23 at some place.
24 Use only the enumerators defined in the corresponding c headers.
25 E.g., irm_X is defined in irmode.h, so use Irmode.irm_X, but not
26 Type.irm_X or any other definition in the java files.