Entry
TSE: Error: Compile: Macro too large: How to circumvent the 'macro too large' message in TSE?
Nov 14th, 2001 12:19
Knud van Eeden,
------------------------------------------------------------------------
--- Knud van Eeden - 14 November 2001 - 10:01 pm -----------------------
Cause:
This might happen when you are exceeding the maximum macro filesize.
[Internet: see:
http://www.faqts.com/knowledge_base/view.phtml/aid/12860/fid/903]
---
Possible solutions:
---
Reduce the size of your macro .s source file:
---
e.g.
-Split your program in functional parts (e.g. part 11, part 12,...)
-Make a separate macro for every functional part (e.g. create files
macro11.s, macro12.s, macro13.s,...)
-Compile every macro (e.g. load file macro11.s, compile
macro11.s, ...)
If you want to exchange parameter information between your macros:
-Exchange parameters
REPEAT
-send exchange information via parameters (use e.g. the TSE
MacroCmdLine() function)
-execute that macro when necessary (e.g. ExecMacro( "macro11.mac",
ExecMacro( "macro12.mac" ), ...)
-receive exchange information via parameters (use e.g. the TSE
MacroCmdLine() function)
UNTIL stop
---
e.g.
Use conditional compilation to compile only the relevant parts of your
macro
e.g.
...
#DEFINE ...
...
...
...
#IFDEF ...
// do this
#ELSE
// do that
#ENDIF
---
PS reducing the string size (e.g. using
STRING s[100]
instead of
STRING s[255]
did not help, as this only influences the size of the macro when
running in memory
---
After all these possible changes, recompile the macro and check e.g. if
the filesize of your macro has reduced.
------------------------------------------------------------------------