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

hello.c
#includeint 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
Get step-by-step solutions from verified subject matter experts
