Index of /afs/cs.cmu.edu/academic/class/15213-f13/www/code/12-linking

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [   ] Makefile 02-Oct-2013 19:02 1.2K [   ] c-noinit 02-Oct-2013 18:18 6.6K [   ] c1-init.E 02-Oct-2013 18:18 62 [   ] c1-noinit.E 02-Oct-2013 18:18 60 [TXT] c1.c 03-Oct-2010 17:59 48 [TXT] c2.c 03-Oct-2010 18:24 145 [TXT] global.h 03-Oct-2010 18:01 93 [   ] interposition.tar 20-Aug-2012 14:25 50K [DIR] interposition/ 27-Sep-2010 23:07 - [TXT] main.c 02-Oct-2013 17:52 62 [   ] main.d 02-Oct-2013 18:18 745 [   ] main.d.data 02-Oct-2013 18:18 151 [   ] main.o 02-Oct-2013 18:18 2.2K [TXT] main.s 02-Oct-2013 18:18 4.3K [   ] prog 02-Oct-2013 19:02 6.4K [   ] prog.d 02-Oct-2013 19:01 12K [   ] prog.d.data 02-Oct-2013 19:02 413 [TXT] simple.c 03-Oct-2010 18:33 312 [TXT] swap.c 29-Sep-2010 21:14 164 [   ] swap.d 02-Oct-2013 18:18 744 [   ] swap.d.data 02-Oct-2013 18:18 168 [   ] swap.o 02-Oct-2013 18:18 2.4K [TXT] swap.s 02-Oct-2013 18:18 5.0K
These code files are used to demonstrate aspects of linking.

FIles:

swap.{c,s.d},  main.{c,s,d}:
	       Demonstration of how global variables and functions are handled
	       when linking.

c1.c, c2.c, global.h global-noinit.h
c1-init.E c1-noinit.E c-noinit:
	  Demonstration of strong and weak symbols.  The ".E" files show the
	  result of running the C preprocessor on the C file,
	  using different options for the .h files.
	  Attempting "make c-init" will give a linker error