> > Can I compile dehydra with my own java scripts which would locate
> > functions which I'll need
> > (e.g. decl_as_string), figure out it's dependencies - and will be able
> > to copy paste lines from original code into
> > my own - e.g. cp\error.c > c_cp_common_functions.c.
>
> > I guess answer would be yes, but how complex it is actually ?
>
> Hard. Code extraction out of C sounds troublesome.
> I really don't see why you refuse to use linux for this. Confusing
> porting dehydra to C with porting to cygwin is enough to get anyone's
> head spinning. On linux we make use of lazy linking so functions are
> aren't present in the C frontend have a null value, then we avoid
> calling those functions when they arent present.
>
> So as I mentioned before, dealing with cygwin seems like a massive waste
> of energy. If you want to analyze win32 code, then setup a
> linux-to-win32 crosscompiler.

Yes, and apparently I have that massive energy to waste. :-)

Like I told in previous mail thread (see 4th message):
http://groups.google.com/group/mozilla.dev.static-analysis/browse_thread/thread/45115cbf0d2d6a55

Linux does not have decent debugger, and that's why I want to try out
it first on cygwin.
Also I'm learning dehydra & gcc on the way, which will help me
(actually us)
later on (when working on simple language construction).

> On linux we make use of lazy linking so functions are
> aren't present in the C frontend have a null value, then we avoid
> calling those functions when they arent present.

but to my understanding you're still calling these functions even
through they are not available
in c frontend. decl_as_string sounds like basic debug / pretty print
function, wihout which it would be
really difficult to make dehydra. Otherwise I could make also all
these function calls flagged
(if_language_C() .... ).

I have reference compilation on linux, may be I will try out whether
you're actually call those functions.



_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to