[Openmcl-devel] Trouble with ffigen

David Steuber david at david-steuber.com
Thu Feb 3 11:40:13 PST 2005

I've created a little test file to run through ffigen.  I also 
recompiled with -g3 -O0 with the intention of running under gdb (which 
I don't know how to use yet.  Here is my test:

david at interloper:~/usr/src/ffigen
$ ./gcc-3.4.1/objdir/gcc/cc1 -fsyntax-only -g3 test.h -o test.ffi

Execution times (seconds)
  parser                :   0.02 (29%) usr   0.00 ( 0%) sys   0.02 (29%) 
  TOTAL                 :   0.07             0.00             0.07
david at interloper:~/usr/src/ffigen
$ cat test.h
/* Find out why ffigen doesn't do defines */
typedef unsigned int my_type;
#define A_CONSTANT 42
int my_funk (int arg1, int arg2);

david at interloper:~/usr/src/ffigen
$ cat test.ffi
(type ("test.h" 2)
  (unsigned ()))
(function ("test.h" 4)
   ((int ()) (int ()) )
   (int ())) (extern))

Do the .ffi files conform to the format described here:


And as a sanity check, am I the only person having this problem?  Maybe 
something in my environment is to blame.

More information about the Openmcl-devel mailing list