| ??? 03/08/11 08:27 Read: times |
#181490 - parameter converted to global variable Responding to: ???'s previous message |
With a non-reentrant function, a bit parameter can be converted into a global variable that may be reused with any other function that have similar needs but isn't called in the same call chain.
With a reentrant function, the compiler get into troubles. Have you looked into the instruction set yet, and figured out why? |
| Topic | Author | Date |
| bit type function parameter | 01/01/70 00:00 | |
| Look at instruction set | 01/01/70 00:00 | |
| What is your actual problem here? | 01/01/70 00:00 | |
| main concern is code operation. | 01/01/70 00:00 | |
| parameter converted to global variable | 01/01/70 00:00 | |
| No reentrancy | 01/01/70 00:00 | |
| Is it the 8051 instruction set? | 01/01/70 00:00 | |
| Still looked at the bit capabilities of the processor? | 01/01/70 00:00 | |
| You need to ask Keil | 01/01/70 00:00 | |
| Use bool to simplify | 01/01/70 00:00 | |
| BOOLEAN directive used | 01/01/70 00:00 | |
| stdbool | 01/01/70 00:00 | |
| Use stdbool | 01/01/70 00:00 | |
| Optimal implementation | 01/01/70 00:00 | |
| SDCC | 01/01/70 00:00 | |
| Optimal for what? | 01/01/70 00:00 | |
both | 01/01/70 00:00 |



