vm-intro basic code

This commit is contained in:
Remzi Arpaci-Dusseau
2018-08-15 12:20:03 -05:00
parent a072c9f934
commit b8fad52c5c
3 changed files with 37 additions and 0 deletions

11
vm-intro/va.c Normal file
View File

@@ -0,0 +1,11 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
printf("location of code : %p\n", main);
printf("location of heap : %p\n", malloc(1));
int x = 3;
printf("location of stack : %p\n", &x);
return 0;
}