From: Wesley Thomas Morrison <wesmorrison@ju...> - 2008-06-06 21:27:24
I had an .alg file that was producing non-compilable C code, even though the translator had no errors. I searched through the .lsp files in /tran/ and figured it out.
If your .alg file uses STATE variable names that are substrings of other STATE variable names, the code that appends _reg to the name (fixup-substitutions in writesusp.lsp) may double-process some variables, resulting in non-compilable C code.
E.g. I had the STATE variables "phase" and "iphase". In the inner loop of the translated .c file, "phase" became "phase_reg" but "iphase" became "iphase_reg_reg".
I picked a totally different variable name and now it's fine. No need for a fix, just wanted to share the workaround.
Fabulous Spa Getaway!
Enter for your chance to WIN great beauty prizes everyday!
Get latest updates about Open Source Projects, Conferences and News.