I've tried to apply the extract_internal demo at
http://smarteiffel.loria.fr/wiki/en/index.php/Extract_internalsWith current revision of the compiler it shows some bugs:
1 - "se c -o reader reader -cecil writer_internals_helper.se" fails
because of several errors in the generated C code like:
reader50.c: In function ‘ihnew327make_blank’:
reader50.c:98: error: ‘C’ undeclared (first use in this function)
reader50.c:98: error: (Each undeclared identifier is reported only once
reader50.c:98: error: for each function it appears in.)
reader50.c: In function ‘ihnew321make_blank’:
reader50.c:207: error: ‘C’ undeclared (first use in this function)
reader50.c: In function ‘ihnew317make_blank’:
reader50.c:241: error: ‘C’ undeclared (first use in this function)
reader50.c: In function ‘ihnew265make’:
reader50.c:300: error: ‘C’ undeclared (first use in this function)
reader50.c: In function ‘ihnew264default_create’:
reader50.c:434: error: ‘C’ undeclared (first use in this function)
reader50.c: In function ‘ihnew263set_item’:
2 - trying the second route - the common root crashes the
extract_internals tool
More on the latter as soon as possible.
Paolo