Re: Translator problem?
- Posted by jeremy (admin) May 02, 2009
- 945 views
Problem Solved!
Great!
The application now translates and runs normally. One thing seems unusual. Previously the init-0.c file was not included in emak.bat, now it is the very last file. I had assumed that it would be immediately following init-.c. I asume this must be normal.
Just for interest, what was the problem? If it isn't too complicated to explain. My understanding of translation is quite limited.
The translator will only create a file so large. When that limit is hit, then it will create a init-0.c, init-1.c, etc... The problem was that I added the generated files to a sequence "generated_files" for the normal files. I did not realize but there is two locations where init-?.c could be split. I caught the first one when the the translator began to fail translating. However, I did not see the second one which was causing your problem.
The reason they are at the end is that the init files contain constant definitions and all the constant definitions are not known until all the other files have been processed (during which they are translated and written). So, that is normal that the init-# files are at the end.
Jeremy