[ #311806 ] Fix the debug feature that permited to trace within the java code the creators of all generated C code
Date: 2008-11-14 11:26
Priority: 5
Submitted By: Marc Poulhies (poulhies)
Assigned To: Nobody (None)
Category: build
State: Open
Summary: Fix the debug feature that permited to trace within the java code the creators of all generated C code
Detailed description: Previously, codegen/nuptse was able to add comments in generated C code that
tracks back to the java code that created it. It is very convenient to debug
faulty generated code. This feature was disabled and not maintained. It should
not be very hard to fix it and provide a way for the user to use it or not (it
had an impact on execution time and generated code size).
Date: 2009-01-12 15:29
Sender: lobryol
Logged In: YES
user_id=743
The feature was disabled because it was very time consuming as
the method
relies on java instrospection.
Supporting again ths feature is however to necessarily hard to
do :
- in codegen, make configurable the static variable
CodeGenHelper::handleCreator
- in codegen CGenerator visitor : for each visited node add
a call to
CodeGenWriter::pushCreator(node->getCreator())
- add a compilation option in think to toggle the generation
of the creator
index