[aspectc-user] Use of AspectC++ for C
Mike Mortensen
mmo at fc.hp.com
Mon Sep 24 17:57:14 CEST 2007
Hi Krishnan,
We have been evaluating the benefits of AspectC++ in legacy systems.
Although the legacy systems are C++, some aspects deal with C-style coding.
In fact, many legacy C++ systems seem to have a lot of C-style procedural
code and sometimes make limited use of inheritance, design patterns, etc.
One example we describe is creating an aspect to 'catch' the NULL returns
from a system function (fopen) and converting it to a C++ exception.
Although you wouldn't want to convert it to an exception, catching NULL
returns from a function or set of functions is a very C-oriented type of
aspect.
This work is described in this paper:
http://www.cs.colostate.edu/~mortense/AsEx.pdf
Other papers on the site above describe debugging aspects
(*Using Aspects with Object-Oriented Frameworks*) and
caching functions (Creating Pluggable and Reusable
Non-functional Aspects in AspectC++)...
Hope this helps!
-Mike
> Hi,
>
> I am looking for information relating to use of AspectC++ tool for C.
> Searched in www.aspectc.org <BLOCKED::http://www.aspectc.org>, but
> could not find much.
> We are planning to evaluate the use of non-production aspects like
> Logging/tracing/debugging for C code.
> Any pointers to information on use of AspectC++ for C, experience
> reports etc will be very helpful.
>
> Thanks
> Krishnan
>
>
> R.Krishnan , Softec (Software Tech Group)
>
> Motorola India Private Limited (MIPL)
>
> N0 66/1, Plot No 5, Bagmane Tech Park
>
> CV Raman Nagar Post
>
> Bangalore 560093
>
> Phone: +91-80-26014002; Mobile: 9844264071
>
> Email: Krishnanr at motorola.com; _a12856 at motorola.com_
> <mailto:a12856 at motorola.com>
>
> Location: 4FL-E5-02
>
> ----------------------------------------
>
> [] General Business Information
>
> [x] Motorola Internal Use Only
>
> [] Motorola Confidential Proprietary
>
>
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>aspectc-user mailing list
>aspectc-user at aspectc.org
>http://www.aspectc.org/mailman/listinfo/aspectc-user
>
>
More information about the aspectc-user
mailing list