Mahenrev
Newbie level 1
I need some help with some questions.
1] If an assembly output is optimised with -O3 [ heavy optimisation ], why is all the variables kept in the register?
2] Let say we have programmed with a bigger amount of variables, say 30 variables,
- when not optimised, its stored in the memory
- when optimised, its stored in the register
when will you know the register is full? Why is even 1 variable stored in the memory?
Thanks is advance
1] If an assembly output is optimised with -O3 [ heavy optimisation ], why is all the variables kept in the register?
2] Let say we have programmed with a bigger amount of variables, say 30 variables,
- when not optimised, its stored in the memory
- when optimised, its stored in the register
when will you know the register is full? Why is even 1 variable stored in the memory?
Thanks is advance