[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] PIPIC Dreams - PIPIC Is Perl Instruments C/C++



Fun with Perl can be had in many ways.

The way I was considering and started coding of having fun with perl 
was :-

Write a perl program that analyzed C/C++ code and "instrumented" (add
extra C/C++ code) it to automagically reveal memory out of bounds, stack
smashes, bad libc calls, failure to check errno, wild pointers, etc. etc.

Sort of hit my funny bone to use Perl to help clean up the mess that the
C/C++ designers made...

(For the C/C++ lovers, I'm perfectly aware that the designers of C/C++
have created something startling clever, (nay! 'tis sheer bloody genius)
that stunningly satisfies a slightly, umm, "interesting", set of
requirements...)

I got some way when I decided I needed to redesign and do the grammar
analysis more formally. (You see for this game you don't really 
need to understand the C++ line for line, if you don't
understand it, you just don't instrument it. I don't have redo CPP as I
can come in after cpp and before the compiler. So I hope to get away with
something hugely simpler than gcc)

Fortunately I spotted a post on the dbi-user's from a (FWP regular) that
made me aware of a CPAN Yacc - like thing that would do the grammar
analysis for me.

What else is out there that could make this pet project more fun?

(Hmm. Template analysis could be done in an entirely seperate pass
converting template code to non-template code. Nah! Why bother, I'll just 
ignore templates for now...)

John Carter

Work Email : john@netsys.co.za Private email : cyent@mweb.co.za 
Yell Phone : 083-543-6915      Phone         : 27-12-348-4246

Death is nature's gentle way of saying, "Relax".


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe