| ??? 01/12/01 15:09 Read: times |
#8153 - RE: does anyone know the reason |
Yes Michael,
if variables needed forever, I use also global variables. But if variables only used short or functions can be used on different variables, it was passed by the call. Then the compiler can generate shorter and faster code by holding this variables in register or overlaying with other variables (saving data RAM). I use global variables also not fully global. With declaring variables in a *.h file, only these functions which need the variable must include this *.h file. All others can not access these variables. I prefer to create many short objects. Thus, why I developed my magic "c.bat" to compile and link all together: http://8052.com/forum/read.phtml?id=8063&top= Peter |
| Topic | Author | Date |
| does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
| RE: does anyone know the reason | 01/01/70 00:00 | |
RE: does anyone know the reason | 01/01/70 00:00 |



