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 struct point 00004 { 00005 double x; 00006 double y; 00007 }; 00008 00009 struct point point_array[100]; 00010 00011 int main() 00012 { 00013 int my_point = 10; 00014 00015 point_array[my_point].x = 12.34; 00016 point_array[my_point].y = 56.78; 00017 00018 printf("%f, %f\n", point_array[my_point].x, point_array[my_point].y); 00019 00020 return 0; 00021 }