Automatically unrolling and outputting for C/C++ code
问题 I'm doing an experiment and the first step is to unroll a loop (from C/C++) a dozen of times (ex: 10, 50, etc) and output the C/C++ unrolled code. Is there any tool that I can use to automatize such unrolling? In other words, what I need is: C/C++ source/loop --->> TOOL (Unroll by X) ----> Unrolled C/C++ source/loop 回答1: Our source-to-source transformation engine, the DMS Software Reengineering Toolkit, with its C++17 front end can be used to do this. DMS can accept explicit source-to-source