Question: The operating system is Ubuntu 18.04 hello.c #include int main(int argc, char *argv[]) { printf(Hello world! ); return 0; } syscall-hello.c #include #include char *buf

The operating system is Ubuntu 18.04

The operating system is Ubuntu 18.04 hello.c #include int main(int argc, char

hello.c

#include  int main(int argc, char *argv[]) { printf("Hello world! "); return 0; } 

syscall-hello.c

#include  #include  char *buf = "Hello world! "; int main(int argc, char *argv) { size_t result; /* "man 2 write" to see arguments to write syscall */ result = syscall(SYS_write, 1, buf, 13); return (int) result; }

Download and compile hello.ce and syscall-hello.com. Compile them statically and dynamically. How do the library and system calls produced by them compare (as shown by ltrace and strace)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!