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
|
00001 #include <stdio.h> 00002 00003 int a; 00004 int b; 00005 int *d; 00006 int *e; 00007 d = &a; 00008 e = &b; 00009 a = 12; 00010 b = 34; 00011 printf("%d\n", *d); 00012 printf("%d\n", *e); 00013 printf("%d\n", d == e); 00014 printf("%d\n", d != e); 00015 d = e; 00016 printf("%d\n", d == e); 00017 printf("%d\n", d != e); 00018 00019 00020 void main() {}