2 // driver.cs: The compiler command line driver.
4 // Author: Miguel de Icaza (miguel@gnu.org)
6 // Licensed under the terms of the GNU GPL
8 // (C) 2001, 2002, 2003 Ximian, Inc (http://www.ximian.com)
14 using System.Reflection;
15 using System.Reflection.Emit;
16 using System.Collections;
19 using System.Globalization;
23 Library, Exe, Module, WinExe
27 /// The compiler driver.
33 // Assemblies references to be linked. Initialized with
35 static ArrayList references;
38 // If any of these fail, we ignore the problem. This is so
39 // that we can list all the assemblies in Windows and not fail
40 // if they are missing on Linux.
42 static ArrayList soft_references;
45 static ArrayList link_paths;
47 // Whether we want Yacc to output its progress
48 static bool yacc_verbose = false;
50 // Whether we want to only run the tokenizer
51 static bool tokenize = false;
53 static string first_source;
55 static Target target = Target.Exe;
56 static string target_ext = ".exe";
58 static bool want_debugging_support = false;
60 static bool parse_only = false;
61 static bool timestamps = false;
62 static bool pause = false;
63 static bool show_counters = false;
64 public static bool parser_verbose = false;
67 // Whether to load the initial config file (what CSC.RSP has by default)
69 static bool load_default_config = true;
71 static Hashtable response_file_list;
74 // A list of resource files
76 static ArrayList resources;
77 static ArrayList embedded_resources;
80 // An array of the defines from the command line
82 static ArrayList defines;
87 static string output_file = null;
90 // Last time we took the time
92 static DateTime last_time, first_time;
95 // Encoding: ISO-Latin1 is 28591
97 static Encoding encoding;
100 // Whether the user has specified a different encoder manually
102 static bool using_default_encoder = true;
104 public static void ShowTime (string msg)
109 DateTime now = DateTime.Now;
110 TimeSpan span = now - last_time;
114 "[{0:00}:{1:000}] {2}",
115 (int) span.TotalSeconds, span.Milliseconds, msg);
118 public static void ShowTotalTime (string msg)
123 DateTime now = DateTime.Now;
124 TimeSpan span = now - first_time;
128 "[{0:00}:{1:000}] {2}",
129 (int) span.TotalSeconds, span.Milliseconds, msg);
132 static void tokenize_file (SourceFile file)
137 input = File.OpenRead (file.Name);
139 Report.Error (2001, "Source file '" + file.Name + "' could not be opened");
144 SeekableStreamReader reader = new SeekableStreamReader (input, encoding, using_default_encoder);
145 Tokenizer lexer = new Tokenizer (reader, file, defines);
146 int token, tokens = 0, errors = 0;
148 while ((token = lexer.token ()) != Token.EOF){
149 Location l = lexer.Location;
151 if (token == Token.ERROR)
154 Console.WriteLine ("Tokenized: " + tokens + " found " + errors + " errors");
160 // MonoTODO("Change error code for aborted compilation to something reasonable")]
161 static void parse (SourceFile file)
167 input = File.OpenRead (file.Name);
169 Report.Error (2001, "Source file '" + file.Name + "' could not be opened");
173 SeekableStreamReader reader = new SeekableStreamReader (input, encoding, using_default_encoder);
175 parser = new CSharpParser (reader, file, defines);
176 parser.yacc_verbose = yacc_verbose;
179 } catch (Exception ex) {
180 Report.Error(666, "Compilation aborted: " + ex);
189 "Mono C# compiler, (C) 2001 - 2003 Ximian, Inc.\n" +
190 "mcs [options] source-files\n" +
191 " --about About the Mono C# compiler\n" +
192 " -checked[+|-] Set default context to checked\n" +
193 " -codepage:ID Sets code page to the one in ID\n" +
194 " (number, `utf8' or `reset')\n" +
195 " -define:S1[;S2] Defines one or more symbols (short: /d:)\n" +
196 " -debug[+-] Generate debugging information\n" +
197 " -doc:FILE XML Documentation file to generate\n" +
198 " -g Generate debugging information\n" +
199 " --fatal Makes errors fatal\n" +
200 " -lib:PATH1,PATH2 Adds the paths to the assembly link path\n" +
201 " -main:class Specified the class that contains the entry point\n" +
202 " -noconfig[+|-] Disables implicit references to assemblies\n" +
203 " -nostdlib[+|-] Does not load core libraries\n" +
204 " -nowarn:W1[,W2] Disables one or more warnings\n" +
205 " -out:FNAME Specifies output file\n" +
206 " --parse Only parses the source file\n" +
207 " --expect-error X Expect that error X will be encountered\n" +
208 " -recurse:SPEC Recursively compiles the files in SPEC ([dir]/file)\n" +
209 " -reference:ASS References the specified assembly (-r:ASS)\n" +
210 " --stacktrace Shows stack trace at error location\n" +
211 " -target:KIND Specifies the target (KIND is one of: exe, winexe,\n" +
212 " library, module), (short: /t:)\n" +
213 " --timestamp Displays time stamps of various compiler events\n" +
214 " -unsafe[+|-] Allows unsafe code\n" +
215 " -warnaserror[+|-] Treat warnings as errors\n" +
216 " -warn:LEVEL Sets warning level (the highest is 4, the default)\n" +
217 " -v Verbose parsing (for debugging the parser)\n" +
218 " -2 Enables experimental C# features\n" +
221 " -linkresource:FILE[,ID] Links FILE as a resource\n" +
222 " -resource:FILE[,ID] Embed FILE as a resource\n" +
223 " --mcs-debug X Sets MCS debugging level to X\n" +
224 " @file Read response file for more options\n\n" +
225 "Options can be of the form -option or /option");
228 static void TargetUsage ()
230 Report.Error (2019, "Valid options for -target: are exe, winexe, library or module");
236 "The Mono C# compiler is (C) 2001, 2002, 2003 Ximian, Inc.\n\n" +
237 "The compiler source code is released under the terms of the GNU GPL\n\n" +
239 "For more information on Mono, visit the project Web site\n" +
240 " http://www.go-mono.com\n\n" +
242 "The compiler was written by Miguel de Icaza, Ravi Pratap and Martin Baulig");
243 Environment.Exit (0);
246 public static int counter1, counter2;
248 public static int Main (string[] args)
250 bool ok = MainDriver (args);
252 if (ok && Report.Errors == 0) {
253 Console.Write("Compilation succeeded");
254 if (Report.Warnings > 0) {
255 Console.Write(" - {0} warning(s)", Report.Warnings);
259 Console.WriteLine ("Counter1: " + counter1);
260 Console.WriteLine ("Counter2: " + counter2);
266 Console.WriteLine("Compilation failed: {0} error(s), {1} warnings",
267 Report.Errors, Report.Warnings);
272 static public void LoadAssembly (string assembly, bool soft)
275 string total_log = "";
278 char[] path_chars = { '/', '\\', '.' };
280 if (assembly.IndexOfAny (path_chars) != -1) {
281 a = Assembly.LoadFrom (assembly);
283 a = Assembly.Load (assembly);
285 TypeManager.AddAssembly (a);
287 } catch (FileNotFoundException){
288 foreach (string dir in link_paths){
289 string full_path = Path.Combine (dir, assembly);
290 if (!assembly.EndsWith (".dll"))
294 a = Assembly.LoadFrom (full_path);
295 TypeManager.AddAssembly (a);
297 } catch (FileNotFoundException ff) {
298 total_log += ff.FusionLog;
303 Report.Error (6, "Cannot find assembly `" + assembly + "'" );
304 Console.WriteLine ("Log: \n" + total_log);
306 } catch (BadImageFormatException f) {
307 Report.Error(6, "Cannot load assembly (bad file format)" + f.FusionLog);
308 } catch (FileLoadException f){
309 Report.Error(6, "Cannot load assembly " + f.FusionLog);
310 } catch (ArgumentNullException){
311 Report.Error(6, "Cannot load assembly (null argument)");
316 /// Loads all assemblies referenced on the command line
318 static public void LoadReferences ()
320 foreach (string r in references)
321 LoadAssembly (r, false);
323 foreach (string r in soft_references)
324 LoadAssembly (r, true);
329 static void SetupDefaultDefines ()
331 defines = new ArrayList ();
332 defines.Add ("__MonoCS__");
335 static string [] LoadArgs (string file)
338 ArrayList args = new ArrayList ();
341 f = new StreamReader (file);
346 StringBuilder sb = new StringBuilder ();
348 while ((line = f.ReadLine ()) != null){
351 for (int i = 0; i < t; i++){
354 if (c == '"' || c == '\''){
357 for (i++; i < t; i++){
364 } else if (c == ' '){
366 args.Add (sb.ToString ());
373 args.Add (sb.ToString ());
378 string [] ret_value = new string [args.Count];
379 args.CopyTo (ret_value, 0);
385 // Returns the directory where the system assemblies are installed
387 static string GetSystemDir ()
389 Assembly [] assemblies = AppDomain.CurrentDomain.GetAssemblies ();
391 foreach (Assembly a in assemblies){
392 string codebase = a.Location;
393 if (codebase.EndsWith ("corlib.dll")){
394 return codebase.Substring (0, codebase.LastIndexOf (System.IO.Path.DirectorySeparatorChar));
398 Report.Error (-15, "Can not compute my system path");
403 // Given a path specification, splits the path from the file/pattern
405 static void SplitPathAndPattern (string spec, out string path, out string pattern)
407 int p = spec.LastIndexOf ("/");
410 // Windows does not like /file.cs, switch that to:
415 pattern = spec.Substring (1);
417 path = spec.Substring (0, p);
418 pattern = spec.Substring (p + 1);
423 p = spec.LastIndexOf ("\\");
425 path = spec.Substring (0, p);
426 pattern = spec.Substring (p + 1);
434 static void ProcessFile (string f)
436 if (first_source == null)
439 Location.AddFile (f);
442 static void ProcessFiles ()
444 Location.Initialize ();
446 foreach (SourceFile file in Location.SourceFiles) {
448 tokenize_file (file);
455 static void CompileFiles (string spec, bool recurse)
457 string path, pattern;
459 SplitPathAndPattern (spec, out path, out pattern);
460 if (pattern.IndexOf ("*") == -1){
465 string [] files = null;
467 files = Directory.GetFiles (path, pattern);
468 } catch (System.IO.DirectoryNotFoundException) {
469 Report.Error (2001, "Source file `" + spec + "' could not be found");
471 } catch (System.IO.IOException){
472 Report.Error (2001, "Source file `" + spec + "' could not be found");
475 foreach (string f in files) {
482 string [] dirs = null;
485 dirs = Directory.GetDirectories (path);
489 foreach (string d in dirs) {
491 // Don't include path in this string, as each
492 // directory entry already does
493 CompileFiles (d + "/" + pattern, true);
497 static void DefineDefaultConfig ()
500 // For now the "default config" is harcoded into the compiler
501 // we can move this outside later
503 string [] default_config = {
508 // Is it worth pre-loading all this stuff?
511 "System.Configuration.Install",
514 "System.DirectoryServices",
515 "System.Drawing.Design",
517 "System.EnterpriseServices",
520 "System.Runtime.Remoting",
521 "System.Runtime.Serialization.Formatters.Soap",
523 "System.ServiceProcess",
525 "System.Web.RegularExpressions",
526 "System.Web.Services",
527 "System.Windows.Forms"
532 foreach (string def in default_config)
533 soft_references.Insert (p++, def);
536 static void SetOutputFile (string name)
541 static void SetWarningLevel (string s)
546 level = Int32.Parse (s);
550 "--wlevel requires a value from 0 to 4");
551 Environment.Exit (1);
553 if (level < 0 || level > 4){
554 Report.Error (1900, "Warning level must be 0 to 4");
555 Environment.Exit (1);
557 RootContext.WarningLevel = level;
560 static void SetupV2 ()
562 RootContext.V2 = true;
563 defines.Add ("__V2__");
566 static void Version ()
568 string version = Assembly.GetExecutingAssembly ().GetName ().Version.ToString ();
569 Console.WriteLine ("Mono C# compiler version {0}", version);
570 Environment.Exit (0);
574 // Currently handles the Unix-like command line options, but will be
575 // deprecated in favor of the CSCParseOption, which will also handle the
576 // options that start with a dash in the future.
578 static bool UnixParseOption (string arg, ref string [] args, ref int i)
582 parser_verbose = true;
597 case "--main": case "-m":
598 if ((i + 1) >= args.Length){
600 Environment.Exit (1);
602 RootContext.MainClass = args [++i];
606 RootContext.Unsafe = true;
609 case "/?": case "/h": case "/help":
612 Environment.Exit (0);
616 if ((i + 1) >= args.Length){
618 Environment.Exit (1);
620 defines.Add (args [++i]);
623 case "--show-counters":
624 show_counters = true;
627 case "--expect-error": {
632 args [++i], NumberStyles.AllowLeadingSign);
633 Report.ExpectedError = code;
635 Report.Error (-14, "Invalid number specified");
646 if ((i + 1) >= args.Length){
648 Environment.Exit (1);
650 SetOutputFile (args [++i]);
654 RootContext.Checked = true;
658 Report.Stacktrace = true;
661 case "--linkresource":
663 if ((i + 1) >= args.Length){
665 Report.Error (5, "Missing argument to --linkres");
666 Environment.Exit (1);
668 if (resources == null)
669 resources = new ArrayList ();
671 resources.Add (args [++i]);
676 if ((i + 1) >= args.Length){
678 Report.Error (5, "Missing argument to --resource");
679 Environment.Exit (1);
681 if (embedded_resources == null)
682 embedded_resources = new ArrayList ();
684 embedded_resources.Add (args [++i]);
688 if ((i + 1) >= args.Length){
689 Environment.Exit (1);
693 string type = args [++i];
696 target = Target.Library;
705 target = Target.WinExe;
709 target = Target.Module;
714 Environment.Exit (1);
720 if ((i + 1) >= args.Length){
722 Environment.Exit (1);
725 references.Add (args [++i]);
729 if ((i + 1) >= args.Length){
731 Environment.Exit (1);
733 link_paths.Add (args [++i]);
737 RootContext.StdLib = false;
745 Report.WarningsAreErrors = true;
749 if ((i + 1) >= args.Length){
751 Environment.Exit (1);
756 warn = Int32.Parse (args [++i]);
759 Environment.Exit (1);
761 Report.SetIgnoreWarning (warn);
765 if ((i + 1) >= args.Length){
768 "--wlevel requires a value from 0 to 4");
769 Environment.Exit (1);
772 SetWarningLevel (args [++i]);
776 if ((i + 1) >= args.Length){
777 Report.Error (5, "--mcs-debug requires an argument");
778 Environment.Exit (1);
782 Report.DebugFlags = Int32.Parse (args [++i]);
784 Report.Error (5, "Invalid argument to --mcs-debug");
785 Environment.Exit (1);
794 if ((i + 1) >= args.Length){
795 Report.Error (5, "--recurse requires an argument");
796 Environment.Exit (1);
798 CompileFiles (args [++i], true);
803 last_time = first_time = DateTime.Now;
810 case "--debug": case "-g":
811 want_debugging_support = true;
815 load_default_config = false;
823 // Currently it is very basic option parsing, but eventually, this will
824 // be the complete option parser
826 static bool CSCParseOption (string option, ref string [] args, ref int i)
828 int idx = option.IndexOf (":");
835 arg = option.Substring (0, idx);
837 value = option.Substring (idx + 1);
852 target = Target.WinExe;
856 target = Target.Library;
861 target = Target.Module;
862 target_ext = ".netmodule";
867 Environment.Exit (1);
875 Environment.Exit (1);
877 SetOutputFile (value);
884 case "/incremental+":
885 case "/incremental-":
895 Environment.Exit (1);
898 defs = value.Split (new Char [] {';', ','});
899 foreach (string d in defs){
906 case "/linkresource":
908 Report.Error (5, arg + " requires an argument");
909 Environment.Exit (1);
911 if (resources == null)
912 resources = new ArrayList ();
914 resources.Add (value);
920 Report.Error (5, arg + " requires an argument");
921 Environment.Exit (1);
923 if (embedded_resources == null)
924 embedded_resources = new ArrayList ();
926 embedded_resources.Add (value);
931 Report.Error (5, "/recurse requires an argument");
932 Environment.Exit (1);
934 CompileFiles (value, true);
940 Report.Error (5, arg + " requires an argument");
941 Environment.Exit (1);
944 string [] refs = value.Split (new char [] { ';', ',' });
945 foreach (string r in refs){
952 Report.Error (5, arg + " requires an argument");
953 Environment.Exit (1);
955 // TODO handle the /doc argument to generate xml doc
962 Report.Error (5, "/lib requires an argument");
963 Environment.Exit (1);
966 libdirs = value.Split (new Char [] { ',' });
967 foreach (string dir in libdirs)
968 link_paths.Add (dir);
974 want_debugging_support = true;
979 RootContext.Checked = true;
983 RootContext.Checked = false;
988 RootContext.Unsafe = true;
992 RootContext.Unsafe = false;
996 case "/warnaserror+":
997 Report.WarningsAreErrors = true;
1000 case "/warnaserror-":
1001 Report.WarningsAreErrors = false;
1005 SetWarningLevel (value);
1012 Report.Error (5, "/nowarn requires an argument");
1013 Environment.Exit (1);
1016 warns = value.Split (new Char [] {','});
1017 foreach (string wc in warns){
1021 warn = Int32.Parse (wc);
1024 Environment.Exit (1);
1026 Report.SetIgnoreWarning (warn);
1032 load_default_config = true;
1037 load_default_config = false;
1043 Environment.Exit (0);
1049 Report.Error (5, arg + " requires an argument");
1050 Environment.Exit (1);
1052 RootContext.MainClass = value;
1057 RootContext.StdLib = false;
1061 RootContext.StdLib = true;
1068 Report.Error (5, "/win32icon is currently not supported");
1079 if (value == "utf8"){
1080 encoding = new UTF8Encoding();
1081 using_default_encoder = false;
1084 if (value == "reset"){
1086 // 28591 is the code page for ISO-8859-1 encoding.
1089 using_default_encoder = true;
1093 cp = Int32.Parse (value);
1097 Console.WriteLine ("Invalid code-page requested");
1102 encoding = Encoding.GetEncoding (cp);
1103 using_default_encoder = false;
1105 Console.WriteLine ("Code page: {0} not supported", cp);
1114 /// Parses the arguments, and drives the compilation
1119 /// TODO: Mostly structured to debug the compiler
1120 /// now, needs to be turned into a real driver soon.
1122 // [MonoTODO("Change error code for unknown argument to something reasonable")]
1123 static bool MainDriver (string [] args)
1126 bool parsing_options = true;
1129 encoding = Encoding.GetEncoding (28591);
1131 Console.WriteLine ("Error: could not load encoding 28591, trying 1252");
1132 encoding = Encoding.GetEncoding (1252);
1135 references = new ArrayList ();
1136 soft_references = new ArrayList ();
1137 link_paths = new ArrayList ();
1139 SetupDefaultDefines ();
1144 // This is not required because Assembly.Load knows about this
1148 int argc = args.Length;
1149 for (i = 0; i < argc; i++){
1150 string arg = args [i];
1152 if (arg.StartsWith ("@")){
1153 string [] new_args, extra_args;
1154 string response_file = arg.Substring (1);
1156 if (response_file_list == null)
1157 response_file_list = new Hashtable ();
1159 if (response_file_list.Contains (response_file)){
1161 1515, "Response file `" + response_file +
1162 "' specified multiple times");
1163 Environment.Exit (1);
1166 response_file_list.Add (response_file, response_file);
1168 extra_args = LoadArgs (response_file);
1169 if (extra_args == null){
1170 Report.Error (2011, "Unable to open response file: " +
1175 new_args = new string [extra_args.Length + argc];
1176 args.CopyTo (new_args, 0);
1177 extra_args.CopyTo (new_args, argc);
1179 argc = new_args.Length;
1183 if (parsing_options){
1185 parsing_options = false;
1189 if (arg.StartsWith ("-")){
1190 if (UnixParseOption (arg, ref args, ref i))
1194 string csc_opt = "/" + arg.Substring (1);
1195 if (CSCParseOption (csc_opt, ref args, ref i))
1198 if (arg.StartsWith ("/")){
1199 if (CSCParseOption (arg, ref args, ref i))
1205 CompileFiles (arg, false);
1213 if (first_source == null){
1214 Report.Error (2008, "No files to compile were specified");
1218 if (Report.Errors > 0)
1225 // Load Core Library for default compilation
1227 if (RootContext.StdLib)
1228 references.Insert (0, "mscorlib");
1230 if (load_default_config)
1231 DefineDefaultConfig ();
1233 if (Report.Errors > 0){
1238 // Load assemblies required
1241 ShowTime ("Loading references");
1242 link_paths.Add (GetSystemDir ());
1246 ShowTime (" References loaded");
1248 if (Report.Errors > 0){
1255 if (output_file == null){
1256 int pos = first_source.LastIndexOf (".");
1259 output_file = first_source.Substring (0, pos) + target_ext;
1261 output_file = first_source + target_ext;
1264 CodeGen.Init (output_file, output_file, want_debugging_support);
1266 TypeManager.AddModule (CodeGen.ModuleBuilder);
1268 DateTime start = DateTime.Now;
1269 TypeManager.ComputeNamespaces ();
1270 DateTime end = DateTime.Now;
1273 // Before emitting, we need to get the core
1274 // types emitted from the user defined types
1275 // or from the system ones.
1278 ShowTime ("Initializing Core Types");
1279 if (!RootContext.StdLib){
1280 RootContext.ResolveCore ();
1281 if (Report.Errors > 0)
1285 TypeManager.InitCoreTypes ();
1287 ShowTime (" Core Types done");
1290 // The second pass of the compiler
1293 ShowTime ("Resolving tree");
1294 RootContext.ResolveTree ();
1295 if (Report.Errors > 0)
1298 ShowTime ("Populate tree");
1299 if (!RootContext.StdLib)
1300 RootContext.BootCorlib_PopulateCoreTypes ();
1301 RootContext.PopulateTypes ();
1302 RootContext.DefineTypes ();
1304 TypeManager.InitCodeHelpers ();
1307 // Verify using aliases now
1309 Namespace.VerifyUsing ();
1311 if (Report.Errors > 0){
1316 // The code generator
1319 ShowTime ("Emitting code");
1320 ShowTotalTime ("Total so far");
1321 RootContext.EmitCode ();
1325 if (Report.Errors > 0){
1330 ShowTime ("Closing types");
1332 RootContext.CloseTypes ();
1334 PEFileKinds k = PEFileKinds.ConsoleApplication;
1336 if (target == Target.Library || target == Target.Module){
1337 k = PEFileKinds.Dll;
1339 if (RootContext.MainClass != null)
1340 Report.Error (2017, "Can not specify -main: when building module or library");
1341 } else if (target == Target.Exe)
1342 k = PEFileKinds.ConsoleApplication;
1343 else if (target == Target.WinExe)
1344 k = PEFileKinds.WindowApplication;
1346 if (target == Target.Exe || target == Target.WinExe){
1347 MethodInfo ep = RootContext.EntryPoint;
1350 if (Report.Errors == 0)
1351 Report.Error (5001, "Program " + output_file +
1352 " does not have an entry point defined");
1356 CodeGen.AssemblyBuilder.SetEntryPoint (ep, k);
1360 // Add the resources
1362 if (resources != null){
1363 foreach (string spec in resources){
1367 cp = spec.IndexOf (',');
1369 file = spec.Substring (0, cp);
1370 res = spec.Substring (cp + 1);
1374 CodeGen.AssemblyBuilder.AddResourceFile (res, file);
1378 if (embedded_resources != null){
1379 object[] margs = new object [2];
1380 Type[] argst = new Type [2];
1381 argst [0] = argst [1] = typeof (string);
1382 MethodInfo embed_res = typeof (AssemblyBuilder).GetMethod ("EmbedResourceFile", argst);
1383 if (embed_res == null) {
1384 Report.Warning (0, new Location (-1), "Cannot embed resources on this runtime: try the Mono runtime instead.");
1386 foreach (string spec in embedded_resources) {
1389 cp = spec.IndexOf (',');
1391 margs [0] = spec.Substring (cp + 1);
1392 margs [1] = spec.Substring (0, cp);
1394 margs [0] = margs [1] = spec;
1396 if (File.Exists ((string) margs [1]))
1397 embed_res.Invoke (CodeGen.AssemblyBuilder, margs);
1399 Report.Error (1566, "Can not find the resource " + margs [1]);
1405 if (Report.Errors > 0)
1408 CodeGen.Save (output_file);
1410 ShowTime ("Saved output");
1411 ShowTotalTime ("Total");
1414 Timer.ShowTimers ();
1416 if (Report.ExpectedError != 0){
1417 Console.WriteLine("Failed to report expected error " + Report.ExpectedError);
1418 Environment.Exit (1);
1423 Console.WriteLine ("Size of strings held: " + DeclSpace.length);
1424 Console.WriteLine ("Size of strings short: " + DeclSpace.small);
1426 return (Report.Errors == 0);