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 myfunc(int x) 00004 { 00005 return x * x; 00006 } 00007 00008 printf("%d\n", myfunc(3)); 00009 printf("%d\n", myfunc(4)); 00010 00011 void vfunc(int a) 00012 { 00013 printf("a=%d\n", a); 00014 } 00015 00016 vfunc(1234); 00017 00018 void qfunc() 00019 { 00020 printf("qfunc()\n"); 00021 } 00022 00023 qfunc(); 00024 00025 void main() {}