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 c; 00006 int d; 00007 int e; 00008 int f; 00009 int x; 00010 int y; 00011 00012 a = 12; 00013 b = 34; 00014 c = 56; 00015 d = 78; 00016 e = 0; 00017 f = 1; 00018 00019 printf("%d\n", c + d); 00020 printf("%d\n", (y = c + d)); 00021 /* printf("%d\n", a ? b+c : c+d); 00022 printf("%d\n", a ? b+c : c+d); 00023 printf("%d\n", a || b ? b+c : c+d); */ 00024 printf("%d\n", e || e && f); 00025 printf("%d\n", e || f && f); 00026 printf("%d\n", e && e || f); 00027 printf("%d\n", e && f || f); 00028 printf("%d\n", a && f | f); 00029 printf("%d\n", a | b ^ c & d); 00030 printf("%d, %d\n", a == a, a == b); 00031 printf("%d, %d\n", a != a, a != b); 00032 printf("%d\n", a != b && c != d); 00033 printf("%d\n", a + b * c / f); 00034 printf("%d\n", a + b * c / f); 00035 printf("%d\n", (4 << 4)); 00036 printf("%d\n", (64 >> 4)); 00037 00038 void main() {}