Write spans out in a separate object file section. This allows to merge

duplicate spans in an object file and more extensions to come.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5250 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-21 19:08:23 +00:00
parent 37ac033370
commit 358ccf236e
18 changed files with 396 additions and 111 deletions

View File

@@ -72,6 +72,7 @@
#include "scanner.h"
#include "segment.h"
#include "sizeof.h"
#include "span.h"
#include "spool.h"
#include "symbol.h"
#include "symtab.h"
@@ -561,7 +562,7 @@ static void OptTarget (const char* Opt attribute ((unused)), const char* Arg)
static void OptVerbose (const char* Opt attribute ((unused)),
const char* Arg attribute ((unused)))
const char* Arg attribute ((unused)))
/* Increase verbosity */
{
++Verbosity;
@@ -822,6 +823,9 @@ static void CreateObjFile (void)
/* Write the assertions */
WriteAssertions ();
/* Write the spans */
WriteSpans ();
/* Write an updated header and close the file */
ObjClose ();
}
@@ -950,7 +954,7 @@ int main (int argc, char* argv [])
break;
case 'V':
OptVersion (Arg, 0);
OptVersion (Arg, 0);
break;
case 'W':