Now I am troubled in source to source transformation.please see a example:
file name: a.c b.c
Now I want to transform them as followed:
The general method is transform them one by one,but if the count of files is
not just two,there are many many files need to transformed,like organized by
makefile.the general method is infeasible.
Of course,there are some approaches to deal with it.
One approach is that we transform them by the trace of include,as long as we
meet a #include"**.*",we suspend the current transformation and jump to the
include for transforming.This method is feasible but also have many
disadvantages such as the same variables.
Another approach is to merge relate files to a single file,and if relate
files is too much,the final file would be very large.other questions also
need to solved.
I believe the all two methods are difficult to implement.What do you think?
any body have a good Implementation scheme or other approaches?Thank you