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
10_pointer.c
00001 #include <stdio.h>
00002 
00003 int a;
00004 int *b;
00005 int c;
00006 
00007 a = 42;
00008 b = &a;
00009 printf("a = %d\n", *b);
00010 
00011 struct ziggy
00012 {
00013     int a;
00014     int b;
00015     int c;
00016 } bolshevic;
00017 
00018 bolshevic.a = 12;
00019 bolshevic.b = 34;
00020 bolshevic.c = 56;
00021 
00022 printf("bolshevic.a = %d\n", bolshevic.a);
00023 printf("bolshevic.b = %d\n", bolshevic.b);
00024 printf("bolshevic.c = %d\n", bolshevic.c);
00025 
00026 struct ziggy *tsar = &bolshevic;
00027 
00028 printf("tsar->a = %d\n", tsar->a);
00029 printf("tsar->b = %d\n", tsar->b);
00030 printf("tsar->c = %d\n", tsar->c);
00031 
00032 /*
00033 b = &(bolshevic.b);
00034 printf("bolshevic.b = %d\n", *b);
00035 */
00036 
00037 void main() {}
 All Data Structures