(EDIT: Maybe this post is in the wrong section, it should be in Ubuntu, Linux and OS Chat)
For a one-file source code hello-world.c for a program whats the difference between (after this of course)
Code:
$gcc hello-world.c -o hello-world
and
Code:
$sudo apt-get install hello-world
$hello-world
(assuming it is available in this way)? I mean what happens inside the system in both cases (except the thing that gcc does in the first case)? Like for the first case, new process starts, it has a PID, maybe it has a default memory limit set by Ubuntu & what until I ctrl+c it?
For the second case, something gets downloaded. Can it have formats other than .deb? Will only the final output file from gcc in the first case hello-world be inside it & where the other system changes occur? When it is run, now what happens & how it is different from the execution in first case?
Bookmarks