/* --------------------------------------------------------------------------
Name:          padding.c
Function:      Code snippet to illustrate padding memory
Versions:
   1.0   1/30/2007   L Simone.  Created.  File compiled for debugging mode.
                  View memory/RAM to see 1) order of variables in memory, and
                  2) which variables are declared and used.
----------------------------------------------------------------------------- */

/* Various global variables of different types. */

char  var1 = 0x01;
char  var2 = 0x02;
char  var3 = 0x03;
char  var4 = 0x04;
int barney = 0xaa55;
long wilma = 0x11223344;
char fred  = 0xbb;

void main( void )
{
  long sum, sum2;             /* local storage variables */
  
  /* Comment thiese two lines out for example 2  
  sum = fred + wilma + barney;
  sum2 = var1 + var2 + var3 + var4;
  */

  /* Comment these 2 lines out for example 1 */  
  sum = fred + wilma;
  sum2 = var1 + var3 + var4;

}

