Austin wrote:
It already has this ability, and has for a while..
When you compile something, it only compiles code into the ecl it will actually use.
This means if you have a function in your code that is never called, it doesn't get put into the ECL.
This I knew already.
Austin wrote:
This also means if you have a constant and check its value, it will only compile it if can go into it - thats the preprocessor setup.
Example:
Find a large script, write down its file size.
Edit the script to have at the top
CONST COMPILE := 0;
in the program group put
program SomeProgram(some arguments)
if ( !COMPILE )
//... all the code here
endif
endprogram
compile and look at the ecl file size.. itll be lots smaller.
This is new to me, thank you. This will help.
Horus