Re: RedyCode - new features

new topic     » goto parent     » topic index » view thread      » older message » newer message
ghaberek said...
ryanj said...
ne1uno said...

now it has a more reasonable translate/build time and the compiler has no memory problem.

Wow, i didn't realize the compiler would choke on that. I have been thinking about some sort of preprocessor that can load image files when the program runs, but if you bind or translate it, it detects which images you are using and builds an images.e before binding/translating.

Try adding the -maxsize option in the translator call. Start with a large value, like 5000 and go up or down from there as needed.

[-maxsize size]       Set the number of C statements per generated file before splitting. 

-Greg

thanks for the idea, it didn't work but, I didn't even think of looking for other options.

not sure if -maxsize is broken or intended to solve a different probllem. -maxsize 1500 didn't reduce the generatated c file at all and took about as long to translate. the problem with the tango-icon file is probably more related to the amount of big numbers that have to be hardcoded to initialize sequences rather than a high statement count? not sure if changing decimal to hex in the euphoria file would have any effect on translation speed. the full size generated tango-icon .c file is 112k lines and amost 4meg. splitting the euphoria tango-icon file generated 2 .c files half as large and cut translation time in half as well.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu