| ??? 06/04/01 13:35 Read: times |
#12180 - RE: Keil C : read two byte? |
True enough however, this was a question regarding the Keil tools and I figured a more efficient method was available so I suggested it.
Bryan Andy Neil wrote: ------------------------------- Craig's approach - using shifts - will <b>always</b> work on <b>any</b> compiler and <b>any</b> target with <b>any</b> byte ordering. Bryan's approach - using a union - might be quicker, but requires you to <b>know</b> the Compiler's byte ordering; it may not be portable to a different compiler or different processor. Thomas' approach looks like trying to emulate the action of a union; it'd be simpler (probably also more efficient) to just use a union! |
| Topic | Author | Date |
| Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
| RE: Keil C : read two byte? | 01/01/70 00:00 | |
RE: Keil C : read two byte? | 01/01/70 00:00 |



