| ??? 12/14/04 20:03 Read: times |
#83103 - sub-block locals Responding to: ???'s previous message |
Variables local to a function are overlaid automaticly by the compiler. In fact, local variables in blocks within a function can overlay each other; eg void fn( void )
{
{
char a;
// your code here
}
// your code here
{
char b;
// your code here
}
} variables 'a' and 'b' can be overlaid, as they are never "active" simultaneously.
|
| Topic | Author | Date |
| KeilC variables overlay between modules | 01/01/70 00:00 | |
| Scope | 01/01/70 00:00 | |
| used to be true | 01/01/70 00:00 | |
| Optimisation Level 2 | 01/01/70 00:00 | |
| Local Scope Globals Never Overlay???? | 01/01/70 00:00 | |
| Global to a module | 01/01/70 00:00 | |
| ie, static. | 01/01/70 00:00 | |
| sub-block locals | 01/01/70 00:00 | |
| Overlay | 01/01/70 00:00 | |
| I tihnk that's wrong | 01/01/70 00:00 | |
| that IS wrong | 01/01/70 00:00 | |
that IS worng | 01/01/70 00:00 |



