From 50ff6d076898cc2de9fe4bc6ac9d8df33473a77c Mon Sep 17 00:00:00 2001 From: uz Date: Fri, 4 Dec 2009 14:12:25 +0000 Subject: [PATCH] Create one literal pool per function, so that literal pool data is removed together with a function, if it is not used. Literal storage can now be controlled by #pragma writable-strings on a per function basis. git-svn-id: svn://svn.cc65.org/cc65/trunk@4499 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/cc65.sgml | 26 ++++++- src/cc65/expr.c | 2 +- src/cc65/function.c | 11 ++- src/cc65/litpool.c | 160 +++++++++++++++++++++++++++++++++++--------- src/cc65/litpool.h | 33 ++++++--- src/cc65/pragma.c | 50 ++++++++------ src/cc65/scanner.c | 17 +++-- 7 files changed, 228 insertions(+), 71 deletions(-) diff --git a/doc/cc65.sgml b/doc/cc65.sgml index 4171a41d4..fddb37937 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -244,7 +244,7 @@ Here is a description of all the command line options: better way is to declare characters explicitly as "signed" if needed. You can also use for better control of this option. - +