local or global variable in a timer/Using enum as integer
#3

Quote:
Originally Posted by Nero_3D
View Post
Globals gets saved in the data section, locals in the stack
Creating normal local variables is only one opcode, also the speed should be the same as they are both loaded into the memory
Globals gets saved in the data section, what does that mean ? it consumes RAM too ?
if yes then whats the deference then, just that the local gets deleted after the function ends ?

About the enums it works, I didn't quite get why, Does the parameter take the sorting enum or the one in the other enum(blabla)

the sorting enum(as I get it) is just a number, if I use 0 instead of it it'll do the same job, then why do I have to put a tag before it and not the actual one.

Thanks.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)