| ??? 04/30/07 14:40 Read: times |
#138297 - more details Responding to: ???'s previous message |
Keil documentation said:
enum -- 8/16 bits -- 1 or 2 bytes -- -128 to +127, or -32768 to +32767
C51 now uses a char variable to represent an enum, if the enum range allows that. The SDCC documentation says nothing as usually; but as in open-source the sources ARE the documentation :-( , based on a quick peek it appears that it's wiser than Keil and attempts to use unsigned-char, char, unsigned-int, int, unsigned long, long, in this order (OK I am C-stupid so don't take this for granted). I suspect that Jez needs this for AVR-gcc, but the documentation for that one is, ehm... JW (the C-hater) |
| Topic | Author | Date |
| Quick C enumerated types question | 01/01/70 00:00 | |
| Not to worry i've found out anyway. | 01/01/70 00:00 | |
| What's a "quick C" | 01/01/70 00:00 | |
| The answer was..... | 01/01/70 00:00 | |
| not really | 01/01/70 00:00 | |
| as has been discussed before | 01/01/70 00:00 | |
| of course not | 01/01/70 00:00 | |
Not true | 01/01/70 00:00 | |
| C99 says | 01/01/70 00:00 | |
| more details | 01/01/70 00:00 | |
| OK | 01/01/70 00:00 | |
| not any more | 01/01/70 00:00 | |
| In C99 | 01/01/70 00:00 | |
| Enumeration type vs. constant | 01/01/70 00:00 | |
| Thanks for that everyone | 01/01/70 00:00 |



