Consider the foll. piece of code:
char *p = (1MB) of storage
*p = 200;
printf(" val = %d", *p)
Lets say I get a file a.out which needs to be run.
Please help me understand certain things:
1) how this file would be laid out in memory.
2) Since this would be a file, what filesystem
related activities would be done (inode ?)
3) Stack allocation and virtual addr. space (conceptual).
In essence I would like to understand the various OS
related actions with reference to a simple program like the above sttored on disk.