I discovered some excessive memory usage in gas recently when defining macros. It turns out that this is a weird implementation feature rather than a bug.
This patch has a possible fix for the issue, but I'd be interested in people's views before I go so far as cleaning it up and discussing it upstream.
Cheers ---Dave
Dave Martin (1): gas: Allow for a more sensible number of macro arguments
gas/as.c | 17 +++++++++++++++++ gas/doc/as.texinfo | 9 ++++++++- gas/hash.c | 5 +++-- gas/hash.h | 1 + gas/macro.c | 22 +++++++++++++++++++++- gas/macro.h | 1 + 6 files changed, 51 insertions(+), 4 deletions(-)
-- 1.7.4.1