Xv6 with picoc & Linkage editor  v1.0
The project delineate mutual cohesion between c library, linkage editor ( linker), interpreter and operating system by porting the same on xv6 kernel
 All Data Structures
51_static.c
00001 #include <stdio.h>
00002 
00003 static int fred = 1234;
00004 static int joe;
00005 
00006 void henry()
00007 {
00008     static int fred = 4567;
00009 
00010     printf("%d\n", fred);
00011     fred++;
00012 }
00013 
00014 void main()
00015 {
00016     printf("%d\n", fred);
00017     henry();
00018     henry();
00019     henry();
00020     henry();
00021     printf("%d\n", fred);
00022     fred = 8901;
00023     joe = 2345;
00024     printf("%d\n", fred);
00025     printf("%d\n", joe);
00026 }
 All Data Structures