| | Re: local variables
|
| (...) I think you're confusing the issue a little bit. LegOS only initializes GLOBAL variables when the program is loaded. So, for example, a global variable declared like: int foo = 4; Will only be initialized to 4 when the program is loaded. If (...) (25 years ago, 17-May-00, to lugnet.robotics.rcx.legos)
| | | | Re: local variables
|
| (...) This is completely true and is basically a feature of the C language. Globals aren't technically "initialized" at all. They are just loaded as part of the image. You could consider that they are initialized at compile time. On a workstation OS (...) (25 years ago, 17-May-00, to lugnet.robotics.rcx.legos)
| |