From 3c237adcd09dfb0c78c07cf72ac061926d32500f Mon Sep 17 00:00:00 2001 From: Remzi Arpaci-Dusseau Date: Sun, 19 May 2019 17:21:22 -0500 Subject: [PATCH] fix to get better heap location --- vm-intro/va.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vm-intro/va.c b/vm-intro/va.c index f1547da..9e283c2 100644 --- a/vm-intro/va.c +++ b/vm-intro/va.c @@ -2,10 +2,10 @@ #include int main(int argc, char *argv[]) { - printf("location of code : %p\n", main); - printf("location of heap : %p\n", malloc(1)); + printf("location of code : %p\n", main); + printf("location of heap : %p\n", malloc(100000000)); int x = 3; - printf("location of stack : %p\n", &x); + printf("location of stack: %p\n", &x); return 0; }