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 Count; 00004 00005 for (Count = 0; Count < 4; Count++) 00006 { 00007 printf("%d\n", Count); 00008 switch (Count) 00009 { 00010 case 1: 00011 printf("%d\n", 1); 00012 break; 00013 00014 case 2: 00015 printf("%d\n", 2); 00016 break; 00017 00018 default: 00019 printf("%d\n", 0); 00020 break; 00021 } 00022 } 00023 00024 void main() {}