Move global segment creation to a better place in source.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4498 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2009-12-04 13:04:40 +00:00
parent ff4eeebec2
commit 1f90ec93a0
4 changed files with 17 additions and 7 deletions

View File

@@ -343,12 +343,15 @@ void Compile (const char* FileName)
/* DefineNumericMacro ("__STDC__", 1); <- not now */
DefineNumericMacro ("__STDC_HOSTED__", 1);
/* Initialize the literal pool */
InitLiteralPool ();
/* Create the base lexical level */
EnterGlobalLevel ();
/* Create the global code and data segments */
CreateGlobalSegments ();
/* Initialize the literal pool */
InitLiteralPool ();
/* Generate the code generator preamble */
g_preamble ();