From f265bb6c2162c48350d473823266528fb51ff9f7 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 23 Oct 2012 01:17:45 -0400 Subject: [PATCH] small tweak --- baremetal/README | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/baremetal/README b/baremetal/README index c7b8443..36bdcbd 100644 --- a/baremetal/README +++ b/baremetal/README @@ -422,8 +422,9 @@ Get it wrong and no matter how bug free your code is it will not run and you will have a hard time figuring it out without looking at what the compiler and linker generated. So the above code starts with a directive .globl, I think .global also works, both do the same thing, declare the -label _start as global meaning it is visible to the linker. In C everything -is global unless you put the word static in front of it then it becomes +label _start as global meaning it is visible to the linker. In C +everything (functions and non-local variables) is global unless you +put the word static in front of it then it becomes local: static unsigned int apple;