fixed warnings on 64-bit Windows

SizeT is larger than Int on 64-bit Windows
diff --git a/src/packages/xdc/bin/xe.c b/src/packages/xdc/bin/xe.c
index 18e0b72..8653752 100644
--- a/src/packages/xdc/bin/xe.c
+++ b/src/packages/xdc/bin/xe.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,EPL
- *  Copyright (c) 2008-2015 Texas Instruments Incorporated
+ *  Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
@@ -109,7 +109,7 @@
 {
     Int status = 0;
     Int i;
-    Int len;
+    SizeT len;
     String tmp, err;
 
     progName = argv[0];
@@ -261,7 +261,7 @@
     static Char nameBuf[MAXNAME + 1];
     String pathBuf = NULL;
     String tmp;
-    Int len;
+    SizeT len;
 
     /* if the nameBuf is too small we fail */
     if (file == NULL || (len = strlen(file)) > MAXNAME) {
@@ -351,8 +351,8 @@
 		if (strncmp(prefix[j], envp[i], strlen(prefix[j])) == 0) {
 		    String path;
 		    String mach;
-		    Int len = strlen(envp[i]) + strlen(xdcRoot) + 32;
-    
+                    SizeT len = strlen(envp[i]) + strlen(xdcRoot) + 32;
+
 		    if ((path = (String)malloc(len)) == NULL) {
 			fprintf(stderr, "%s: out of memory\n", progName);
 			exit(1);
@@ -452,7 +452,7 @@
 {
     String result = NULL;
     String fullPath;
-    Int len;
+    SizeT len;
 
     if (xdcPath == NULL) {
         xdcPath = "";
@@ -478,7 +478,7 @@
     struct stat buf;
 
     if (stat(name, &buf) == 0 && !S_ISDIR(buf.st_mode)) {
-	return (TRUE);
+        return (TRUE);
     }
 
     return (FALSE);
diff --git a/src/packages/xdc/bld/bin/xdc.c b/src/packages/xdc/bld/bin/xdc.c
index 0b2e210..a6667cb 100644
--- a/src/packages/xdc/bld/bin/xdc.c
+++ b/src/packages/xdc/bld/bin/xdc.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,EPL
- *  Copyright (c) 2008-2018 Texas Instruments Incorporated
+ *  Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
@@ -188,7 +188,7 @@
 {
     Int status = 0;
     Int i, j;
-    Int len;
+    SizeT len;
     String vs, err;
 
     progName = argv[0];
@@ -567,7 +567,7 @@
     static Char nameBuf[MAXNAME + 1];
     String pathBuf = NULL;
     String tmp;
-    Int len;
+    SizeT len;
 
     /* if the nameBuf is too small we fail */
     if (file == NULL || (len = strlen(file)) > MAXNAME) {
@@ -671,7 +671,7 @@
                 if (strncmp(prefix[j], envp[i], strlen(prefix[j])) == 0) {
                     String path;
                     String mach;
-                    Int len = strlen(envp[i]) + strlen(root) + 32;
+                    SizeT len = strlen(envp[i]) + strlen(root) + 32;
 
                     if ((path = (String)malloc(len)) == NULL) {
                         fprintf(stderr, "%s: out of memory\n", progName);
diff --git a/src/packages/xdc/runtime/SysMin.c b/src/packages/xdc/runtime/SysMin.c
index 4b169d8..a7033b6 100644
--- a/src/packages/xdc/runtime/SysMin.c
+++ b/src/packages/xdc/runtime/SysMin.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,ESD
- *  Copyright (c) 2008-2017 Texas Instruments Incorporated
+ *  Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  This program and the accompanying materials are made available under the
  *  terms of the Eclipse Public License v1.0 and Eclipse Distribution License
  *  v. 1.0 which accompanies this distribution. The Eclipse Public License is
@@ -113,7 +113,7 @@
      */
     if (module->wrapped == TRUE) {
         SysMin_outputFunc(module->outbuf + module->outidx,
-                          SysMin_bufSize - module->outidx);
+                          (UInt)(SysMin_bufSize - module->outidx));
     }
 
     SysMin_outputFunc(module->outbuf, module->outidx);
diff --git a/src/packages/xdc/runtime/System.c b/src/packages/xdc/runtime/System.c
index e2954d7..79d2a4c 100644
--- a/src/packages/xdc/runtime/System.c
+++ b/src/packages/xdc/runtime/System.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,ESD
- *  Copyright (c) 2008-2017 Texas Instruments Incorporated
+ *  Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  This program and the accompanying materials are made available under the
  *  terms of the Eclipse Public License v1.0 and Eclipse Distribution License
  *  v. 1.0 which accompanies this distribution. The Eclipse Public License is
@@ -484,7 +484,7 @@
                 if (parse.ptr == (char *)NULL) {
                     parse.ptr = "(null)";
                 }
-                parse.len = strlen(parse.ptr);
+                parse.len = (UInt)(strlen(parse.ptr));
                 if ((parse.precis != -1) && ((UInt)parse.precis < parse.len)) {
                     parse.len = (UInt)parse.precis;
                 }
diff --git a/src/packages/xdc/runtime/System.xdt b/src/packages/xdc/runtime/System.xdt
index 0f5e00b..945a665 100644
--- a/src/packages/xdc/runtime/System.xdt
+++ b/src/packages/xdc/runtime/System.xdt
@@ -1,6 +1,6 @@
 %%{
 /* --COPYRIGHT--,ESD
- *  Copyright (c) 2008-2018 Texas Instruments Incorporated
+ *  Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  This program and the accompanying materials are made available under the
  *  terms of the Eclipse Public License v1.0 and Eclipse Distribution License
  *  v. 1.0 which accompanies this distribution. The Eclipse Public License is
@@ -26,7 +26,7 @@
     /* vav is used in an optimization of printfExtend to reduce pointer math
      *
      *  Unfortunately, this optimization is not portable: targets in which
-     *  a va_list is an array type require more careful use of va_start, 
+     *  a va_list is an array type require more careful use of va_start,
      *  va_copy, and va_end which defeats the optimization.
      */
     var vav = arrayTypeVaList ? "*pva" : "va";
@@ -51,7 +51,7 @@
  *  Right-justified (which is default) minimum width is not supported
  *  for %$L, %$S, or %$F.
  */
-xdc_Int xdc_runtime_System_printfExtend__I(xdc_Char **pbuf, xdc_CString *pfmt, 
+xdc_Int xdc_runtime_System_printfExtend__I(xdc_Char **pbuf, xdc_CString *pfmt,
     xdc_VaList *pva, xdc_runtime_System_ParseData *parse)
 {
     xdc_CString fmt = *pfmt;
@@ -92,7 +92,7 @@
                 (xdc_runtime_Types_Label *)va_arg(`vav`, void *);
 
             /*
-             * Call Text_putLab to write out the label, taking the precision 
+             * Call Text_putLab to write out the label, taking the precision
              * into account.
              */
             res = xdc_runtime_Text_putLab(lab, pbuf, parse->precis);
@@ -118,11 +118,11 @@
 %
         if (c == 'F') {
             xdc_runtime_Types_Site site;
-            
+
             /* Retrieve the file name string from the argument list */
             site.file = parse->aFlag ? (xdc_Char *) xdc_iargToPtr(va_arg(`vav`, xdc_IArg)) :
                                        (xdc_Char *) va_arg(`vav`, xdc_Char *);
-            
+
             /* Retrieve the line number from the argument list. */
             site.line = parse->aFlag ? (xdc_Int) va_arg(`vav`, xdc_IArg) :
                                        (xdc_Int) va_arg(`vav`, xdc_Int);
@@ -134,7 +134,7 @@
              * to 0x7fff.
              */
             site.mod = 0;
-            
+
             /*
              * Call putSite to format the file and line number.
              * If a precision was specified, it will be used as the maximum
@@ -153,7 +153,7 @@
 
             found = TRUE;
         }
-        
+
 %    } /* end %$F */
 %
 %    /* %$S - Recursively formats a string */
@@ -258,7 +258,7 @@
         } while (*(--parse->end) == '0');
         ++parse->end;
 #endif
-        parse->len = parse->end - parse->ptr;
+        parse->len = (UInt)(parse->end - parse->ptr);
         /* format integer part (right to left!) */
         parse->ptr = `formatNum`(parse->ptr,
             (`INum`)d, parse->zpad - parse->len, 10);
@@ -266,7 +266,7 @@
             *(--parse->ptr) = '-';
         }
 
-        parse->len = parse->end - parse->ptr;
+        parse->len = (UInt)(parse->end - parse->ptr);
         found = TRUE;
     }
 %} else {
@@ -291,13 +291,13 @@
      * Before returning, we must update the value of pva. We use a label here
      * so that all return points will go through this update.
      * The 'goto end' is here to ensure that there is always a reference to the
-     * label (to avoid the compiler complaining). 
+     * label (to avoid the compiler complaining).
      */
     goto end; 
 end:
 %if (!arrayTypeVaList) {
     *pva = va;
-%}  
+%}
     return (res);
 }
 %
diff --git a/src/packages/xdc/services/host/bin/cmp.c b/src/packages/xdc/services/host/bin/cmp.c
index 338167f..27bac24 100644
--- a/src/packages/xdc/services/host/bin/cmp.c
+++ b/src/packages/xdc/services/host/bin/cmp.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2008-2017 Texas Instruments Incorporated
+ *Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
@@ -138,7 +138,7 @@
     FILE *ns = NULL, *os = NULL;
     char nbuf[BUFSIZE];
     char obuf[BUFSIZE];
-    int nn, on;
+    SizeT nn, on;
     int status = 0;
     long lineNum = 1;
     long charNum = 1;
@@ -153,7 +153,7 @@
     }
 
     do {
-        int min, i;
+        SizeT min, i;
 
         nn = fread(nbuf, 1, sizeof (nbuf), ns);
         on = fread(obuf, 1, sizeof (obuf), os);
@@ -251,7 +251,7 @@
  */
 static int trim(char *buf, FILE *fs)
 {
-    int index = strlen(buf) - 1;
+    SizeT index = strlen(buf) - 1;
     if (index >= 0) {
         if (buf[index] == '\n') {
             buf[index] = '\0';
diff --git a/src/packages/xdc/services/host/bin/cmv.c b/src/packages/xdc/services/host/bin/cmv.c
index bba6981..78e5e9f 100644
--- a/src/packages/xdc/services/host/bin/cmv.c
+++ b/src/packages/xdc/services/host/bin/cmv.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2008-2017 Texas Instruments Incorporated
+ *Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
@@ -79,8 +79,8 @@
     argc -= i;
 
     if (argc != 2) {
-	fprintf(stderr, usage, progName);
-	exit(1);
+        fprintf(stderr, usage, progName);
+        exit(1);
     }
 
     /* if destination file does not exist, treat this as a difference */
@@ -148,16 +148,17 @@
 static void cat(char *file)
 {
     FILE *fs;
-    int n;
+    SizeT n;
     char buf[BUFSIZE];
 
     if ((fs = fopen(file, "rb")) != NULL) {
-	while ((n = fread(buf, 1, sizeof (buf), fs)) > 0) {
-	    fwrite(buf, 1, n, stdout);
-	}
+        while ((n = fread(buf, 1, sizeof (buf), fs)) > 0) {
+            fwrite(buf, 1, n, stdout);
+        }
         fclose(fs);
     }
 }
+
 /*
  *  ======== compare ========
  */
@@ -166,7 +167,7 @@
     FILE *ns = NULL, *os = NULL;
     char nbuf[BUFSIZE];
     char obuf[BUFSIZE];
-    int nn, on;
+    SizeT nn, on;
     int status = 0;
 
     if ((ns = fopen(new, "rb")) == NULL	|| (os = fopen(old, "rb")) == NULL) {
diff --git a/src/packages/xdc/services/host/bin/fixdep.c b/src/packages/xdc/services/host/bin/fixdep.c
index 81212bd..465f2b5 100644
--- a/src/packages/xdc/services/host/bin/fixdep.c
+++ b/src/packages/xdc/services/host/bin/fixdep.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2008 Texas Instruments and others.
+ *Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
@@ -47,14 +47,14 @@
 {
     FILE *tmpOut;
     FILE *out = stdout;
-    
+
     if (argc != 2 && argc != 3) {
 	fprintf(stderr, usage, argv[0]);
 	exit(1);
     }
 
     XUTL_init();
-    
+
     progName = argv[0];
 
     if ((lineBuf = (char *)malloc(LINEQUANTUM)) == NULL) {
@@ -62,14 +62,14 @@
 	exit(1);
     }
     lineBufLen = LINEQUANTUM;
-    
+
     if ((tmpOut = XUTL_tmpFile()) == NULL) {
 	perror("can't create temporary file");
 	exit(1);
     }
 
     processFile(argv[1], tmpOut);
-    
+
     if (argc == 3) {
 	/* remove destination file */
 	XUTL_rm(argv[2]);
@@ -102,19 +102,19 @@
 {
     char *done = NULL;
     String line;
-    int lineLen;
+    SizeT lineLen;
     FILE *in;
 
     if ((in = fopen(file, "r")) == NULL) {
-	return;
+        return;
     }
 
     do {
 	lineBuf[0] = '\0';
 	line = lineBuf;
 	lineLen = lineBufLen;
-	while ((done = fgets(line, lineLen, in)) != NULL) {
-	    int len = strlen(lineBuf);
+	while ((done = fgets(line, (UInt)lineLen, in)) != NULL) {
+	    SizeT len = strlen(lineBuf);
 	    if (len < (lineBufLen - 1) || lineBuf[len - 1] == '\n') {
 		/* concatenate lines that end with \ */
 		if (len >= 2
@@ -199,4 +199,3 @@
 	}
     }
 }
-
diff --git a/src/packages/xdc/services/host/bin/fixlist.c b/src/packages/xdc/services/host/bin/fixlist.c
index 64b8664..9258ad1 100644
--- a/src/packages/xdc/services/host/bin/fixlist.c
+++ b/src/packages/xdc/services/host/bin/fixlist.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2008 Texas Instruments and others.
+ *Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
@@ -34,8 +34,8 @@
  *
  *      inc-file    is a simple list of files (one per line, UNIX file
  *                  format).  File names that match the pattern "*.xdc.inc" or
- *		    "*.cfg.inc" are recursively expanded into the resulting
- *		    list of files.
+ *                  "*.cfg.inc" are recursively expanded into the resulting
+ *                  list of files.
  *
  *      prefix      is a string that is affixed at the beginning of each
  *                  file name.  If prefix is not specified then it defaults
@@ -105,17 +105,17 @@
 String progName = "";
 
 static Char *lineBuf;
-static Int lineBufLen = 0;
+static SizeT lineBufLen = 0;
 
 static String *excludeTab;
 static Int excludeTabLen = 0;
 
 static String filterTab[MAXEXCLUDE];
 static Int filterTabIndex = 0;
-static Int filterTabLen = sizeof(filterTab) / sizeof(String);
+static SizeT filterTabLen = sizeof(filterTab) / sizeof(String);
 
 static String *lineTab;
-static Int lineTabLen = 0;
+static SizeT lineTabLen = 0;
 static Int lineTabIndex = 0;
 
 static Int modified = FALSE;
@@ -255,9 +255,8 @@
         qsort(excludeTab, excludeTabLen, sizeof(String), compare);
     }
     if (excludeTabLen > 0) {
-        /* Warning: we assume here (for performance reasons) that every
-         * item in the list returned by XUTL_findPackages has "./" as a
-         * prefix.
+        /* Warning: we assume here (for performance reasons) that every item in
+         * the list returned by XUTL_findPackages has "./" as a prefix.
          */
         excludeTab++;                           /* skip first package: "." */
         excludeTabLen--;
@@ -292,7 +291,7 @@
              *  after the directory name.  This is ensured by the compare
              *  function used to sort the names
              */
-            Int len = strlen(lineTab[i]);
+            SizeT len = strlen(lineTab[i]);
             Int j;
             if (strncmp(lineTab[i], lineTab[i + 1], len) == 0
                 && lineTab[i + 1][len] == '/') {
@@ -485,7 +484,7 @@
 {
     FILE *in;
     Char *line;
-    Int lineLen;
+    SizeT lineLen;
     Char *done = NULL;
 
     if ((in = fopen(file, "r")) == NULL) {
@@ -498,8 +497,8 @@
         lineBuf[0] = '\0';
         line = lineBuf;
         lineLen = lineBufLen;
-        while ((done = fgets(line, lineLen, in)) != NULL) {
-            Int len = strlen(lineBuf);
+        while ((done = fgets(line, (UInt)lineLen, in)) != NULL) {
+            SizeT len = strlen(lineBuf);
             if (len < (lineBufLen - 1) || lineBuf[len - 1] == '\n') {
                 /* concatenate lines that end with \ */
                 if (len >= 2
@@ -553,8 +552,8 @@
 static Int genDirLine(IArg arg, IArg *cookie, String name, String dir)
 {
     static Char *lineBuf = NULL;
-    static Int   lineLen = 0;
-    Int len;
+    static SizeT lineLen = 0;
+    SizeT len;
 
     /* re-alloc lineBuf, if necessary */
     len = (strlen(name) + strlen(dir)) + 2;
@@ -652,7 +651,7 @@
  */
 static Void processLine(String line)
 {
-    Int len = strlen(line);
+    SizeT len = strlen(line);
 
     /* if the line names another file to include, recurse */
     if (len > 8 && 
@@ -735,7 +734,7 @@
                 }
                 if (!SetFileTime(h, NULL, &wtime, NULL)) {
                     fprintf(stderr,
-                        "fixlist: failed to patch bogus %s times.\n",fileName);
+                        "fixlist: failed to patch bogus %s times.\n", fileName);
                 }
             }
         }
@@ -788,7 +787,7 @@
  */
 static Int fixTimesScan(IArg arg, IArg *cookie, String name, String dir)
 {
-    Int len = strlen(dir) + strlen(name) + 2;
+    SizeT len = strlen(dir) + strlen(name) + 2;
     if (len > lineBufLen) {
         lineBufLen = len;
         if ((lineBuf = (Char *)realloc(lineBuf, lineBufLen)) == NULL) {
@@ -823,7 +822,7 @@
 
     while (fgets(lineBuf, sizeof(lineBuf), in) != NULL) {
         String newString;
-        Int len = strlen(lineBuf);
+        SizeT len = strlen(lineBuf);
 
         if (len <= 0
             || strchr("\r\n", lineBuf[0])
@@ -860,7 +859,7 @@
 {
     static Char lineBuf[FILENAME_MAX + 32];
     Char *cp;
-    Int len = strlen(inFile);
+    SizeT len = strlen(inFile);
 
     if (len > FILENAME_MAX) {
         fprintf(stderr, "%s: include file name too long: '%s'\n",
diff --git a/src/packages/xdc/services/host/bin/mkdep.c b/src/packages/xdc/services/host/bin/mkdep.c
index 7afeb31..201f7c5 100644
--- a/src/packages/xdc/services/host/bin/mkdep.c
+++ b/src/packages/xdc/services/host/bin/mkdep.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2008-2018 Texas Instruments Incorporated
+ *Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
@@ -67,7 +67,7 @@
 static String *getOptionsFile(Int *argc, String argv[]);
 static Bool inList(LST_Seq headers, String name);
 static String *mkPathTab(String path);
-static String *myRealloc(String *array, Int len, Int inc);
+static String *myRealloc(String *array, SizeT len, Int inc);
 static Void parseC(String linebuf, String dotDir, LST_Seq incList);
 static Void parseS(String linebuf, String dotDir, LST_Seq incList);
 static Void printFile(FILE *out, String format, String filename);
@@ -92,7 +92,7 @@
 static Int cOptsLen = 0;
 static Char dirChar[2] = {'\0', '\0'};
 static Char cwd[MAXPATH + 1];
-static Int cwdLen = 0;
+static SizeT cwdLen = 0;
 static Bool dflag = FALSE;
 static Bool gflag = FALSE;
 static Bool nflag = FALSE;
@@ -166,7 +166,7 @@
 		incPath = argv[1];
 		break;
 	    }
-	    
+
 	    case 'i': {
 		if ((incPath = getenv(argv[1])) == NULL) {
 		    fprintf(stderr,
@@ -181,7 +181,7 @@
 		excPath = argv[1];
 		break;
 	    }
-	    
+
 	    case 'e': {
 		if ((excPath = getenv(argv[1])) == NULL) {
 		    fprintf(stderr,
@@ -210,7 +210,7 @@
 		}
                 break;
             }
-            
+
             case 'a': {
 		if ((outFile = fopen(argv[1], "a+")) == NULL) {
 		    fprintf(stderr, "%s: can't open %s for output\n",
@@ -226,14 +226,14 @@
 		argc += 1;
 		break;
 	    }
-	    
+
 	    case 'v': {
 		vflag++;
 		argv -= 1;
 		argc += 1;
 		break;
 	    }
-	    
+
 	    case 'w': {
 		wflag = TRUE;
 		argv -= 1;
@@ -278,7 +278,7 @@
     else {
 	dirChar[0] = DIRCHAR[0]; /* use local machine's char (i.e. DIRCHAR) */
     }
-    
+
     if (getcwd(cwd, MAXPATH) == NULL) {
         cwd[0] = '\0';
     }
@@ -613,14 +613,14 @@
 {
     Int i;
     static Char value[MAXPATH + 3]; /* + 3 for '\0' and two "'s */
-    
+
     if (token == NULL) {
         return (NULL);
     }
-    
+
     for (i = 0; i < cOptsLen; i++) {
         if (cOpts[i][0] == '-' && (cOpts[i][1] == 'D' || cOpts[i][1] == 'd')) {
-            int len = strlen(token);
+            SizeT len = strlen(token);
             String def = cOpts[i] + 2;
             if (strncmp(def, token, len) == 0) {
                String val = def + len;
@@ -666,14 +666,14 @@
 static String getIncPath(Int argc, String argv[])
 {
     Int i;
-    Int len;
+    SizeT len;
     String incPath;
-    
+
     for (len = i = 0; i < argc; i++) {
 	len += strlen(argv[i]);
     }
-    
-    if ((incPath = (String)GS_alloc(len + 1)) != NULL) {
+
+    if ((incPath = (String)GS_alloc((UInt)len + 1)) != NULL) {
 	Char *cp = incPath;
 
 	/* look for "-I" or "-i" options and copy paths into incPath */
@@ -719,11 +719,12 @@
 static String *getOptionsFile(Int *argc, String argv[])
 {
     FILE *file;
-    Int i, len;
+    Int i;
+    SizeT len;
     String tmp;
     static Char line[LINELEN];
     static String fileArgv[MAXARGV];
-    
+
     if ((file = fopen(argv[0] + 1, "rt")) == NULL) {
 	fprintf(stderr, "%s: can't open options file %s\n", progName, argv[0]);
 	exit(1);
@@ -734,7 +735,7 @@
 	if (len > 0 && line[len - 1] == '\n') {
 	    line[--len] = '\0';
 	}
-	if ((tmp = GS_alloc(len + 1)) == NULL) {
+	if ((tmp = GS_alloc((UInt)len + 1)) == NULL) {
 	    fprintf(stderr, "%s: out of memory\n", progName);
 	    exit(1);
 	}
@@ -763,12 +764,12 @@
 static Bool inList(LST_Seq headers, String name)
 {
     String tmp;
-    Int nameLen;
-    Int index;
+    SizeT nameLen;
+    SizeT index;
     Ptr cursor;
     Ptr valbuf;
     Bool status = FALSE;
-    
+
     /* save LST_Seq state */
     cursor = LST_cursor(headers, (Ptr)NULL);
     valbuf = LST_valbuf(headers, (Ptr)NULL);
@@ -784,7 +785,7 @@
 	    }
 	}
     }
-    
+
     /* restore LST_Seq state */
     LST_cursor(headers, cursor);
     LST_valbuf(headers, valbuf);
@@ -800,8 +801,8 @@
     String  *pathTab;
     String  pathCopy;
     Int	    numPaths = 0;
-    Int	    pathTabLen;
-    Int	    len;
+    SizeT   pathTabLen;
+    SizeT   len;
 
     /* allocate initial pathTab; +1 to allow for NULL termination */
     pathTab = (String *)GS_alloc((UInt)(sizeof(String) * (QUANTUM + 1)));
@@ -819,7 +820,7 @@
 		return (NULL);
 	    }
 	    strcpy(pathCopy, path);
-    
+
 	    /* fill table with paths listed in pathCopy */
 	    pathTab[numPaths++] = strtok(pathCopy, PATHSEPS);
 	    while ((pathTab[numPaths++] = strtok(NULL, PATHSEPS)) != NULL) {
@@ -840,13 +841,13 @@
 /*
  *  ======== myRealloc ========
  */
-static String *myRealloc(String *array, Int len, Int inc)
+static String *myRealloc(String *array, SizeT len, Int inc)
 {
     String *new;
-    UInt	    nbytes;
+    SizeT   nbytes;
 
     nbytes = sizeof(String) * (len + inc);
-    if ((new = (String *)GS_alloc(nbytes)) != NULL) {
+    if ((new = (String *)GS_alloc((UInt)nbytes)) != NULL) {
 	memcpy((char *)new, (char *)array, len * sizeof(String));
 	GS_free(array);
     }
@@ -857,17 +858,16 @@
 /*
  *  ======== parseC ========
  */
-
 static Void parseC(String linebuf, String dotDir, LST_Seq incList)
 {
     String s;
     Bool searchDot = TRUE;
-    
+
     /*printf("parseC line: %s\n", linebuf); */
 
     /* skip leading white space */
     for (; *linebuf == ' ' || *linebuf == '\t'; linebuf++) {
-	;
+        ;
     }
 
 
@@ -1056,7 +1056,7 @@
 {
     String *ignorePathPtr;
     String *curPathPtr;
-    Int len;
+    SizeT len;
 
     for (ignorePathPtr = ignoreTab; *ignorePathPtr != NULL; ignorePathPtr++) {
 	for (curPathPtr = pathTab; *curPathPtr != NULL; curPathPtr++) {
@@ -1080,7 +1080,7 @@
  */
 static String quoteString(String filename)
 {
-    String tmp = (String)GS_alloc(2 * strlen(filename) + 1);
+    String tmp = (String)GS_alloc((UInt)(2 * strlen(filename) + 1));
 
     if (tmp != NULL) {
 	Char *src, *dst;
@@ -1132,7 +1132,7 @@
     Char *new;
     Char up[] = {'.', '.', dirChar[0], '\0'};
     Int i, j;
-    Int len;
+    SizeT len;
     
     /* if it's an absolute path simply return */
     if (path[0] == dirChar[0] || (path[1] == ':' && path[2] == '\\')) {
diff --git a/src/packages/xdc/services/host/bin/rxgen.c b/src/packages/xdc/services/host/bin/rxgen.c
index 6c9af87..0f959ba 100644
--- a/src/packages/xdc/services/host/bin/rxgen.c
+++ b/src/packages/xdc/services/host/bin/rxgen.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2008 Texas Instruments and others.
+ *Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
@@ -69,7 +69,7 @@
 #endif
 
 #ifndef FILENAME_MAX
-#define FILENAME_MAX	512
+#define FILENAME_MAX    512
 #endif
 
 #define TOOLSENVNAME	"TOOLS"
@@ -85,7 +85,7 @@
 typedef struct Map {
     String from;
     String to;
-    Int len;
+    SizeT  len;
 } Map;
 
 static Void addAlias(String from, String to);
@@ -94,7 +94,7 @@
 static String filterArg(String arg);
 static String filterPath(String path);
 static String getUnixCurDir(Void);
-static String map(String path, Int *offset);
+static String map(String path, SizeT *offset);
 static Void parseEnv(Void);
 
 #if defined(xdc_target__os_Windows)
@@ -128,7 +128,7 @@
     int	 i;
     FILE *out;
     String rwd;
-    
+
     /* save our name */
     progName = *argv++;
     argc--;
@@ -209,7 +209,7 @@
     else {
 	out = stdout;
     }
-    
+
     /* if no command is specified, simply filter stdin */
     if (argc < 1) {
 	/* filter stdin */
@@ -313,10 +313,10 @@
 /*
  *  ======== append ========
  */
-static Void append(String *dst, Int *dlen, String suffix, Int slen)
+static Void append(String *dst, SizeT *dlen, String suffix, SizeT slen)
 {
-    Int plen = strlen(*dst);
-    
+    SizeT plen = strlen(*dst);
+
     if ((plen + slen) >= *dlen) {
 	if (*dlen == 0) {
 	    *dst = (String)malloc(slen + 128);
@@ -385,11 +385,11 @@
  */
 static String filterArg(String arg)
 {
-    int offset;
+    SizeT offset;
     String alias;
     Int state = BEGIN;
     Char *src, *cp;
-    Int len = 0;
+    SizeT len = 0;
     String result = "";
     
     /* replace \ with / */
@@ -442,16 +442,16 @@
  */
 static String filterPath(String path)
 {
-    int offset;
+    SizeT offset;
     String result, alias;
-    
+
     /* replace \ with / */
     b2f(path);
-    
+
     /* map prefix as specified in mapTab */
     alias = map(path, &offset);
     if (alias == NULL) {
-	alias = "";
+        alias = "";
     }
 
     /* allocate a string buffer large enough to hold new string */
@@ -658,7 +658,7 @@
 /*
  *  ======== map ========
  */
-static String map(String path, Int *offset)
+static String map(String path, SizeT *offset)
 {
     Int i;
 
diff --git a/src/packages/xdc/services/host/bin/stderr.c b/src/packages/xdc/services/host/bin/stderr.c
index eecc594..6cba142 100644
--- a/src/packages/xdc/services/host/bin/stderr.c
+++ b/src/packages/xdc/services/host/bin/stderr.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2008 Texas Instruments and others.
+ *Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
@@ -62,14 +62,14 @@
 static char *progName = "";
 
 static void printCmd(char *argv[]);
-static int runCmd(char *cmd, char *argv[]);
+static uintptr_t runCmd(char *cmd, char *argv[]);
 
 /*
  *  ======== main ========
  */
 int main(int argc, char *argv[])
 {
-    int status = 0;
+    uintptr_t status = 0;
     char *fileName;
 
     progName = argv[0];
@@ -129,7 +129,7 @@
     }
 
     /* if the exec failed, return its error status */
-    exit (status);
+    exit ((UInt)status);
 }
 
 #if defined(xdc_target__os_Windows)
@@ -193,11 +193,11 @@
 
     /* count number of arguments in argv and create local array of arguments */
     for (tmp = argv, argc = 0; *tmp != NULL; tmp++) {
-	argc++;
+        argc++;
     }
 
     for (i = 0; i < argc; i++) {
-	fprintf(stderr, "%s ", argv[i]);
+        fprintf(stderr, "%s ", argv[i]);
     }
 }
 
@@ -205,9 +205,9 @@
  *  ======== runCmd ========
  *  Run specified command
  */
-static int runCmd(char *cmd, char *argv[])
+static uintptr_t runCmd(char *cmd, char *argv[])
 {
-    int status;
+    uintptr_t status;
 #if defined(xdc_target__os_Windows)
     const char *const *args = getArgs(argv);
 
@@ -238,7 +238,7 @@
 
     fprintf(stderr, "%s: can't execute '", progName);
     printCmd(argv);
-    fprintf(stderr, "' (exit status = %d) ", status);
+    fprintf(stderr, "' (exit status = %zu) ", status);
     perror("because");
 
     return (status);
diff --git a/src/packages/xdc/services/host/bin/xdccpp.c b/src/packages/xdc/services/host/bin/xdccpp.c
index 059fcbf..a5034e0 100644
--- a/src/packages/xdc/services/host/bin/xdccpp.c
+++ b/src/packages/xdc/services/host/bin/xdccpp.c
@@ -1,10 +1,10 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2012 Texas Instruments and others.
+ *Copyright (c) 2012-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
  *  http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  *  Contributors:
  *      Texas Instruments - initial implementation
  *
@@ -12,7 +12,7 @@
 /*
  *  ======== xdccpp.c ========
  *  Copy packages to specified repository
- *  
+ *
  *  usage: xdccpp [-help] [-n] [base-directory ...] dest-repo
  *
  *  This utility copies all entire packages, specified by their base
@@ -40,14 +40,14 @@
     "    -help    display this message\n"
     "    -n       don't actually copy any files; just show the commands\n"
     "             that would be executed.\n";
-    
+
 static String progName = NULL;
 
 static String dstRepo = NULL;   /* path prefix of dst repo */
 static String curRepo = NULL;   /* path prefix of src repo */
 static String curBase = NULL;   /* path prefix of src package base */
 static String curName = NULL;   /* package name with '/'s */
-static Int curBaseLen = 0;      /* strlen(curBase) */
+static SizeT curBaseLen = 0;    /* strlen(curBase) */
 
 static Bool nflag = FALSE;
 
@@ -61,11 +61,11 @@
 {
     Int i;
     Int status;
-    
+
     XUTL_init();
-    
+
     progName = argv[0];
-    
+
     for (i = 1; i < argc; i++) {
         if (argv[i][0] == '-') {
             switch (argv[i][1]) {
@@ -100,7 +100,7 @@
         fprintf(stderr, usage, progName);
         return (1);
     }
-    
+
     for (status = 0; status == 0 && i < argc; i++) {
         if (XUTL_isPackageBase(argv[i], FALSE)) {
 
@@ -140,7 +140,7 @@
             status = 1;
         }
     }
-    
+
     return (status);
 }
 
@@ -153,15 +153,15 @@
  */
 static Bool filter(IArg arg, String baseName, String dirName, Char *end)
 {
-    Int len = end - dirName;
-    Int baseLen = strlen(baseName);
+    SizeT len = end - dirName;
+    SizeT baseLen = strlen(baseName);
     Bool result = TRUE;
-    
+
     /* append baseName and dirName to determine if it's a package */
     if ((len + 1 + baseLen + 1) < MAXPATHLEN) {
         sprintf(pathBuf, "%s/%s", dirName, baseName);
         result = XUTL_isPackageBase(pathBuf, FALSE);
-        
+
         /* check curRepo against pathBuf pkg's repository */
         if (result) {
             String rname = XUTL_getPackageRep(pathBuf);
diff --git a/src/packages/xdc/services/host/bin/xdcenv.c b/src/packages/xdc/services/host/bin/xdcenv.c
index 1c2ab92..1a87a78 100644
--- a/src/packages/xdc/services/host/bin/xdcenv.c
+++ b/src/packages/xdc/services/host/bin/xdcenv.c
@@ -1,10 +1,10 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2008 Texas Instruments and others.
+ *Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
  *  http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  *  Contributors:
  *      Texas Instruments - initial implementation
  *
@@ -103,7 +103,7 @@
 static Int oldPairs = 0;   /* num of 'name = value' lines read from file */
 
 static Char *lineBuf;
-static Int lineBufLen;
+static SizeT lineBufLen;
 
 static String usage = "usage: %s [-d] [-v] [-i] destination\n";
 
@@ -241,7 +241,7 @@
     FILE *in = NULL;
     Char *done = NULL;
     String line;
-    Int lineLen;
+    SizeT lineLen;
     Int status = 0;
 
     if (new == NULL) {
@@ -280,8 +280,8 @@
         lineBuf[0] = '\0';
         line = lineBuf;
         lineLen = lineBufLen;
-        while ((done = fgets(line, lineLen, in)) != NULL) {
-            Int len = strlen(lineBuf);
+        while ((done = fgets(line, (UInt)lineLen, in)) != NULL) {
+            SizeT len = strlen(lineBuf);
             if (lineBuf[len - 1] == '\n') {
                 lineBuf[len - 1] = '\0';  /* trim newlines to simplify
                                            * compare in processLine()
@@ -337,10 +337,9 @@
     Int status;
 
 #if defined(xdc_target__os_Windows)
-    /* if the value is a path, we do case insensitive compare
-     * because Windoze is case-insensitive and although it
-     * preserves case on file names it does not preserve case
-     * of drive letters(!)
+    /* if the value is a path, we do case insensitive compare because Windows is
+     * case-insensitive and although it preserves case on file names it does not
+     * preserve case of drive letters(!)
      */
     status = (env->flags & ISPATH)
         ? stricmp(env->value, value) : strcmp(env->value, value);
@@ -370,7 +369,7 @@
 static Char *genContents(Env new[])
 {
     Int i;
-    Int len = 0;    /* length of physically allocated buffer */
+    SizeT len = 0;  /* length of physically allocated buffer */
     Char *buf;      /* output buffer */
 
     /* allocate initial output buffer */
@@ -533,4 +532,3 @@
 
     return (0);  /* ignore lines that are not of the form 'name = value' */
 }
-
diff --git a/src/packages/xdc/services/host/bin/xdclpf.c b/src/packages/xdc/services/host/bin/xdclpf.c
index afda04f..00f526b 100644
--- a/src/packages/xdc/services/host/bin/xdclpf.c
+++ b/src/packages/xdc/services/host/bin/xdclpf.c
@@ -1,10 +1,10 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2008 Texas Instruments and others.
+ *Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
  *  http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  *  Contributors:
  *      Texas Instruments - initial implementation
  *
@@ -38,7 +38,7 @@
 static String curRepo = NULL;
 static String curBase = NULL;
 static String curName = NULL;
-static Int curBaseLen = 0;
+static SizeT curBaseLen = 0;
 static Bool aflag = FALSE;
 
 static Bool filter(IArg arg, String baseName, String dirName, Char *end);
@@ -50,9 +50,9 @@
 Int main(Int argc, String argv[])
 {
     Int i;
-    
+
     progName = argv[0];
-    
+
     for (i = 1; i < argc; i++) {
         if (argv[i][0] == '-') {
             switch (argv[i][1]) {
@@ -114,7 +114,7 @@
                 progName, argv[i]);
         }
     }
-    
+
     return (0);
 }
 
@@ -126,10 +126,10 @@
  */
 static Bool filter(IArg arg, String baseName, String dirName, Char *end)
 {
-    Int len = end - dirName;
-    Int baseLen = strlen(baseName);
+    SizeT len = end - dirName;
+    SizeT baseLen = strlen(baseName);
     Bool result = TRUE;
-    
+
     /* append baseName and dirName to determine if it's a package */
     if ((len + 1 + baseLen + 1) < MAXPATHLEN) {
         sprintf(pathBuf, "%s/%s", dirName, baseName);
@@ -164,4 +164,3 @@
     printf("%s%s/%s\n", curName, dirName + curBaseLen, baseName);
     return (0);
 }
-
diff --git a/src/packages/xdc/services/host/bin/xdcpath.c b/src/packages/xdc/services/host/bin/xdcpath.c
index 20c85c0..307e6d1 100644
--- a/src/packages/xdc/services/host/bin/xdcpath.c
+++ b/src/packages/xdc/services/host/bin/xdcpath.c
@@ -1,10 +1,10 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2008 Texas Instruments and others.
+ *Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
  *  http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  *  Contributors:
  *      Texas Instruments - initial implementation
  *
@@ -17,7 +17,7 @@
  *	usage: xdcpath [-b package-base]
  *
  *  Options:
- *	-b dir	    base directory of a package; used to form complete 
+ *	-b dir	    base directory of a package; used to form complete
  *		    package path.
  *
  *  Exit status:
@@ -42,8 +42,8 @@
 #define MAXPATHLEN  1024
 
 static Char *pathBuf = NULL;
-static Int pathBufLen = 0;
-static Int pathLen = 0;
+static SizeT pathBufLen = 0;
+static SizeT pathLen = 0;
 
 static String progName = "";
 
@@ -59,9 +59,9 @@
     Char pkgsBuf[MAXPATHLEN + 1] = {'\0'};
     String base = NULL;
     Int status = 0;
-    
+
     XUTL_init();
-    
+
     progName = argv[0];
 
     while (argc > 1 && argv[1][0] == '-') {
@@ -97,7 +97,7 @@
     if ((tmp = getenv("XDCPATH")) != NULL) {
 	append(tmp);
     }
-    
+
     /* add XDCROOT/packages */
     if ((tmp = getenv("XDCROOT")) != NULL) {
 	if ((80 + strlen(tmp)) >= MAXPATHLEN) {
@@ -108,7 +108,7 @@
     }
     else if ((tmp = XUTL_getProgPath(progName)) != NULL) {
 	/* XDCROOT = "tmp/.." */
-	Int len = strlen(tmp);
+	SizeT len = strlen(tmp);
 	if ((80 + len) >= MAXPATHLEN) {
 	    fprintf(stderr, "%s: error: path too long: %s\n", progName, tmp);
 	    exit (1);
@@ -173,7 +173,7 @@
  */
 static Void append(String new)
 {
-    Int len = strlen(new) + 1;
+    SizeT len = strlen(new) + 1;
 
     /* make sure pathBuf has sufficient space to hold new string + ';' */
     if ((len + pathLen) >= pathBufLen) {
@@ -186,7 +186,7 @@
     }
 
     if (pathBuf[0] != '\0' && pathBuf[strlen(pathBuf) - 1] != ';') {
-	strcat(pathBuf, ";");
+        strcat(pathBuf, ";");
     }
     strcat(pathBuf, new);
     pathLen = strlen(pathBuf);
diff --git a/src/packages/xdc/services/host/bin/xdcpkg.c b/src/packages/xdc/services/host/bin/xdcpkg.c
index f321bdf..069e33f 100644
--- a/src/packages/xdc/services/host/bin/xdcpkg.c
+++ b/src/packages/xdc/services/host/bin/xdcpkg.c
@@ -1,10 +1,10 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2008 Texas Instruments and others.
+ *Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
  *  http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  *  Contributors:
  *      Texas Instruments - initial implementation
  *
@@ -68,7 +68,7 @@
  *      -s  shallow package search; don't recurse when looking for packages.
  *          When -d is also specified only display immediate requirements.
  *          This option can't be used with -r.
- *          
+ *
  *      -v  verbose output
  *
  *  To deal with files that are too big (>2GB):
@@ -164,9 +164,9 @@
 {
     Int i;
     Int status = 0;
-    
+
     XUTL_init();
-    
+
     progName = argv[0];
 
     while (argc > 1 && argv[1][0] == '-') {
@@ -238,7 +238,7 @@
 		exit(1);
 	    }
 	    if (name[0] == '\0') {  /* unnamed package */
-		Int j;
+		SizeT j;
 
                 /* re-define name */
                 free(name);
@@ -288,7 +288,7 @@
         }
         fprintf(stderr, "%s: %s\n", progName, err);
     }
-    
+
     return (status);
 }
 
@@ -300,7 +300,7 @@
 static Node *addNode(Node *nodeTab, Int *nodeTabLen, Int *nodeTabMax,Node node)
 {
     Int i, j;
-    
+
     /* if node is already in table, return */
     for (j = 0; j < *nodeTabLen; j++) {
 	if (strcmp(nodeTab[j]->name, node->name) == 0) {
diff --git a/src/packages/xdc/services/host/bin/xdcrmp.c b/src/packages/xdc/services/host/bin/xdcrmp.c
index 8618c92..da4021e 100644
--- a/src/packages/xdc/services/host/bin/xdcrmp.c
+++ b/src/packages/xdc/services/host/bin/xdcrmp.c
@@ -1,10 +1,10 @@
 /* --COPYRIGHT--,EPL
- *Copyright (c) 2008 Texas Instruments and others.
+ *Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
  *  http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  *  Contributors:
  *      Texas Instruments - initial implementation
  *
@@ -45,7 +45,7 @@
 static String curRepo         = NULL;
 static String curBase         = NULL;
 static String curName         = NULL;
-static Int curBaseLen         = 0;
+static SizeT curBaseLen         = 0;
 
 static Bool kflag = FALSE;
 static Bool nflag = FALSE;
@@ -64,12 +64,12 @@
 Int main(Int argc, String argv[])
 {
     Int i;
-    
+
     XUTL_init();
     LST_init();
-    
+
     progName = argv[0];
-    
+
     for (i = 1; i < argc; i++) {
         if (argv[i][0] == '-') {
             switch (argv[i][1]) {
@@ -110,7 +110,7 @@
                 fprintf(stderr, "%s: output memory\n", progName);
                 exit(1);
             }
-            
+
             curRepo = NULL;
             curBase = argv[i];
             curBaseLen = strlen(curBase);
@@ -149,7 +149,7 @@
                 progName, argv[i]);
         }
     }
-    
+
     return (exitStatus);
 }
 
@@ -188,17 +188,17 @@
  */
 static Bool filter(IArg arg, String baseName, String dirName, Char *end)
 {
-    Int len = end - dirName;
-    Int baseLen = strlen(baseName);
+    SizeT len = end - dirName;
+    SizeT baseLen = strlen(baseName);
     Bool result = TRUE;
     Bool isDir = FALSE;
-    
+
     /* append baseName and dirName to determine if it's a package */
     if ((len + 1 + baseLen + 1) < MAXPATHLEN) {
         sprintf(pathBuf, "%s/%s", dirName, baseName);
         result = XUTL_isPackageBase(pathBuf, FALSE);
         isDir = result ? TRUE : XUTL_isDir(pathBuf);
-        
+
         /* if -k is not set, check curRepo against pathBuf pkg's repository */
         if (result && curRepo != NULL) {
             String rname = XUTL_getPackageRep(pathBuf);
diff --git a/src/packages/xdc/services/host/lib/gld.c b/src/packages/xdc/services/host/lib/gld.c
index ee239bc..8b0380d 100644
--- a/src/packages/xdc/services/host/lib/gld.c
+++ b/src/packages/xdc/services/host/lib/gld.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,EPL
- * Copyright (c) 2008-2018 Texas Instruments Incorporated
+ * Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
@@ -51,7 +51,7 @@
 static String searchPath = NULL;
 
 static Bool findFile(String baseName, String searchPath, Char pathName[]);
-static Int getDirLen(String dir);
+static SizeT getDirLen(String dir);
 
 /*
  *  ======== GLD_create ========
@@ -69,9 +69,9 @@
     }
 
 #if defined(xdc_target__os_Windows)
-    /* Note that LoadLibrary will automatically add a ".dll" extension
-     * if name does not contain a "."; in addition, a name that ends
-     * with "." is assumed to *not* have an extension.
+    /* Note that LoadLibrary will automatically add a ".dll" extension if name
+     * does not contain a "."; in addition, a name that ends with "." is assumed
+     * to *not* have an extension.
      */
     lib = (Ptr)LoadLibrary(name);
 #else
@@ -152,7 +152,7 @@
  */
 static Bool findFile(String baseName, String searchPath, Char pathName[])
 {
-    Int baseLen, dirLen;
+    SizeT baseLen, dirLen;
     String dir;
     Bool status = FALSE;
 
@@ -221,7 +221,7 @@
 /*
  *  ======== getDirLen ========
  */
-static Int getDirLen(String dir)
+static SizeT getDirLen(String dir)
 {
     String end;
 
diff --git a/src/packages/xdc/services/host/lib/xutl.c b/src/packages/xdc/services/host/lib/xutl.c
index cb5a678..f09b327 100644
--- a/src/packages/xdc/services/host/lib/xutl.c
+++ b/src/packages/xdc/services/host/lib/xutl.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,EPL
- *  Copyright (c) 2008-2018 Texas Instruments Incorporated
+ *  Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
@@ -103,7 +103,7 @@
 static Bool isPkg(String name);
 static Bool mkArgv(String fileName, ArgvDesc *desc, String *err);
 static Bool mkDir(String dir);
-static Void saveError(Int len, String format, ...);
+static Void saveError(SizeT len, String format, ...);
 static String stripPkgName(String root, String pname);
 static Void tmpCleanup(Void);
 static String tryPath(String pname, String cdir);
@@ -248,7 +248,7 @@
 	/* otherwise, get the repository name (relative to pkg) and cwd */
         Char cwd[MAXPATHLEN + 1];
 	String rname = XUTL_getPackageName(pdir, TRUE);
-	Int plen = 0;
+	SizeT plen = 0;
 
         cwd[0] = '\0';
 
@@ -322,7 +322,7 @@
     Char nameBuf[MAXPATHLEN + 1];
     String pathBuf = NULL;
     String tmp;
-    Int len;
+    SizeT len;
 
     if (pathSep == NULL) {
 	pathSep = PATHSEP;
@@ -375,7 +375,7 @@
     String pathBuf = NULL;
     String tmp;
     Char *cp;
-    Int len;
+    SizeT len;
 
     /* if the nameBuf is too small we fail */
     if (pname == NULL || ppath == NULL || (len = strlen(pname)) > MAXNAME) {
@@ -679,7 +679,7 @@
 
     /* start with canonical path to the package's base */
     if ((result = XUTL_getCanonicalPath(dname)) != NULL) {
-        Int len, rlen;
+        SizeT len, rlen;
 
         /* compute length of suffix to trim from result, len */
         if (pname[0] == '\0') { /* support for unnamed packages (remove?) */
@@ -903,7 +903,7 @@
 Bool XUTL_isPackageBase(String pbase, Bool buildFlag)
 {
     Char nameBuf[MAXPATHLEN + 1];
-    Int len;
+    SizeT len;
 
     /* if the nameBuf is too small we fail; 12 = length of "/package.???" */
     if ((len = strlen(pbase)) > (MAXPATHLEN - 12)) {
@@ -1010,7 +1010,7 @@
 #if defined(xdc_target__os_Windows)
     const char *const *tmp;
     int argc, i;
-    int status;
+    intptr_t status;
     char **args;
 
     /* Workaround for a bug in ucrtbase.dll:
@@ -1056,9 +1056,9 @@
      */
     status = _spawnvpe(_P_WAIT, cmdname, args, envp);
     if (status < 0) {
-        return (status);
+        return ((Int)status);
     }
-    exit(status);
+    exit((Int)status);
 #else
     int status = 1;
 
@@ -1074,7 +1074,7 @@
         free(cmd);
     }
 
-    return (status);
+    return ((Int)status);
 #endif
 }
 
@@ -1683,7 +1683,7 @@
  */
 static Bool skipFxn(IArg obj, String base, String fullPath, Char *end)
 {
-    Int len = end - fullPath;
+    SizeT len = end - fullPath;
     Bool result = FALSE;
 
     /* skip "package" if we are in a package */
@@ -1735,7 +1735,7 @@
 {
     Char nameBuf[MAXPATHLEN + 1];
     String pathBuf;
-    Int len;
+    SizeT len;
     String path = getenv("XDCPATH");
     String result = NULL;
     Char *cp;
@@ -1918,7 +1918,7 @@
         start++;
         end = strchr(start, '"');
         if (end != NULL) {
-            Int len = end - start;
+            SizeT len = end - start;
             if ((value = malloc(len + 1)) != NULL) {
                 strncpy(value, start, len);
                 value[len] = '\0';
@@ -2050,9 +2050,9 @@
 static String getLine(FILE *file)
 {
     String lineBuf;
-    Int lineBufLen;
+    SizeT lineBufLen;
     Char *cp;
-    Int max;
+    SizeT max;
     Bool empty = TRUE;
 
     /* allocate initial line buffer */
@@ -2065,8 +2065,8 @@
     /* read from file into lineBuf until we get end-of-line */
     cp = lineBuf;
     max = lineBufLen;
-    while (fgets(cp, max, file) != NULL) {
-        Int len = strlen(lineBuf);
+    while (fgets(cp, (Int)max, file) != NULL) {
+        SizeT len = strlen(lineBuf);
         empty = FALSE;
         if (lineBuf[len - 1] == '\n') {     /* reached EOL */
             lineBuf[len - 1] = '\0';        /* trim newline char and stop */
@@ -2193,7 +2193,7 @@
 /*
  *  ======== saveError ========
  */
-static Void saveError(Int len, String format, ...)
+static Void saveError(SizeT len, String format, ...)
 {
     va_list va;
 
diff --git a/src/packages/xdc/services/io/StringUtils.cpp b/src/packages/xdc/services/io/StringUtils.cpp
index 73674bb..3c5ae52 100644
--- a/src/packages/xdc/services/io/StringUtils.cpp
+++ b/src/packages/xdc/services/io/StringUtils.cpp
@@ -1,13 +1,13 @@
 /* --COPYRIGHT--,EPL
- *  Copyright (c) 2008 Texas Instruments and others.
+ *  Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
  *  http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  *  Contributors:
  *      Texas Instruments - initial implementation
- * 
+ *
  * --/COPYRIGHT--*/
 #include <afx.h>
 
@@ -16,7 +16,7 @@
 namespace StringUtils
 {
 
-int split(const CString input, const CString delimiter, CStringArray& results)
+size_t split(const CString input, const CString delimiter, CStringArray& results)
 {
     int prevStart = 0;
     int delimSize = delimiter.GetLength();
@@ -31,7 +31,7 @@
     int nextStart = input.Find(delimiter, 0);
 
     /* keep looking for delimiters */
-    while( nextStart >= prevStart )
+    while (nextStart >= prevStart)
     {
         /* found one, so accumulate up to that delimiter */
         int length = nextStart - prevStart;
diff --git a/src/packages/xdc/services/io/StringUtils.h b/src/packages/xdc/services/io/StringUtils.h
index ccd8c80..0c2fff2 100644
--- a/src/packages/xdc/services/io/StringUtils.h
+++ b/src/packages/xdc/services/io/StringUtils.h
@@ -1,13 +1,13 @@
 /* --COPYRIGHT--,EPL
- *  Copyright (c) 2008 Texas Instruments and others.
+ *  Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
  *  http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  *  Contributors:
  *      Texas Instruments - initial implementation
- * 
+ *
  * --/COPYRIGHT--*/
 #ifndef __STRINGUTILS_H_
 #define __STRINGUTILS_H_
@@ -17,7 +17,7 @@
 namespace StringUtils
 {
 
-int split(const CString input, const CString delimiter, CStringArray& results);
+size_t split(const CString input, const CString delimiter, CStringArray& results);
 
 void join(const CStringArray& input, const CString delimiter, CString& result);
 
diff --git a/src/packages/xdc/xs/xs.c b/src/packages/xdc/xs/xs.c
index fe90819..ba4161e 100644
--- a/src/packages/xdc/xs/xs.c
+++ b/src/packages/xdc/xs/xs.c
@@ -1,5 +1,5 @@
 /* --COPYRIGHT--,EPL
- *  Copyright (c) 2008-2018 Texas Instruments Incorporated
+ *  Copyright (c) 2008-2019 Texas Instruments Incorporated
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the Eclipse Public License v1.0
  *  which accompanies this distribution, and is available at
@@ -674,7 +674,7 @@
 
     if (fgets(buffer, sizeof(buffer), stdin)) {
         if (strcmp(buffer, "quit\n") && strcmp(buffer, "quit\r\n")) {
-            Int len = strlen(buffer) + strlen(prefix);
+            SizeT len = strlen(buffer) + strlen(prefix);
             if ((command = malloc(len + 1)) != NULL) {
                 strcpy(command, prefix);
                 strcat(command, buffer);