This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

A51 Limits of Macro-expansion??

Is there a Limit of the total size of macro-expanded code? (in V5.10)

I've made a library of very handy macros which expand to a remarkably large listing.

Sometimes, when I define additional macros within a module that uses the library, I get error-messages like "illegal pointer-assignment" (I don't remember exactly the message).

I know the documented limit of 20000 characters per macro, but the manual says nothing about a total limit.

I also remember this error-message (LIMIT EXCEEDED) when there was no such error (I've also counted all the MACROs, REPTs, ENDMs etc., to exclude an error) and the library itself has less than 8000 Bytes.

The macros (?if, ?else, ?endif etc.) support structured programming in assembly and they helped me find many bugs in an inherited project, I have to maintain now. So don't I want to miss them.

Comments welcome

Norbert