Hi,
Would anyone care to comment on using the 'stabs' emitted
by 'gcc -S ...' as an alternative to parsing .c or .h files to
get info on structs (and global variables as well) for use
by Inline/Inline::Struct?
Tom C.'s c2ph does this for structs, and it seems to be a
fool-proof approach, so long as you don't need #define info
or can get it otherwise.
As an aside, I think there may be a bug in c2ph: when I run it
on Solaris, I get an incorrect size for a complicated struct
datatype whose '.stab' extends over 3 lines.
I'm interested in dragging a C library (actually, a large
program with the main() omitted) lock, stock and barrel into
perl so I can tinker with the internals, and replace the
program's awful GUI quickly via Tk or somesuch.
Also, it'd be nice to control regression tests via perl rather
than C.
Was the stabs approach ever considered/discarded/laughed off stage for Inline and its
::kiddies?
Cheers,
Tholom.
Visit http://www.oceanfree.net to get your free e-mail account and use our unique
Irish Internet directory