Revisiting the Problem of Variable Number of Loops in Programming Implementing A'code Generator' Method
Some algorithms require a variable number of loops to be used within a program and the number depends on user input during the runtime. For example, generating all possible arrangements of n given different symbols is one such problem where the thing variable number of loops Is needed as the number n may vary at the runtime. Changing the raw code and recompiling it for every different user input is simply absurd. In the present proposed work, the authors have tried to find a work around by using the code generating technique by running a parent code. Code generated by a parent code-generator is generally not preferred in situations where it is supposed to be subsequently edited by human intervention in regular frequency. Some systems such the wizards for installing application software like VC++ etc. generate code which the programmer is expected to edit by hand. This cannot be popular by any common sense. The authors have devised a method to avoid any human intervention in between. Generated code should be saved in a separate file and then be compiled to generate the final desired piece of code for the desired output.
Authors
- P. Mukhopadhyay
Publication Details
- Journal
- Reason-A Technical Journal
- Published
- 2025-01-09
- DOI
- https://doi.org/10.21843/reas/2023/1-7/47344
- Primary Topic
- Embedded Systems Design Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00