From 3976746735629a689cd22863d79d9efc13743364 Mon Sep 17 00:00:00 2001 From: uz Date: Sat, 5 Dec 2009 22:39:45 +0000 Subject: [PATCH] Rewrote literal handling. Literals are now saved together with other function data, and at the end of compilation merged if possible. Literals for unused functions are removed together with the function. git-svn-id: svn://svn.cc65.org/cc65/trunk@4501 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/cc65.sgml | 16 +- src/cc65/asmcode.c | 9 +- src/cc65/asmstmt.c | 12 +- src/cc65/codegen.c | 20 ++- src/cc65/codegen.h | 3 + src/cc65/compile.c | 49 ++++-- src/cc65/compile.h | 11 +- src/cc65/declare.c | 13 +- src/cc65/expr.c | 8 +- src/cc65/function.c | 7 +- src/cc65/litpool.c | 373 +++++++++++++++++++++++++++++++++----------- src/cc65/litpool.h | 87 ++++++----- src/cc65/main.c | 7 +- src/cc65/pragma.c | 9 +- src/cc65/scanner.c | 6 +- src/cc65/scanner.h | 22 +-- src/cc65/stdfunc.c | 10 +- src/cc65/symentry.c | 13 ++ src/cc65/symentry.h | 7 +- 19 files changed, 461 insertions(+), 221 deletions(-) diff --git a/doc/cc65.sgml b/doc/cc65.sgml index fddb37937..6ae45dcac 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. - +