• Initialize long with floats binary representation
    Hello, how can I achieve long l = WHAT_EVER_MACRO (-12.5); main() { printf("%X",l); } resulting in output "0xC1480000" the binary representation of the float -12.5 . Without that MACRO...
  • "AUTO" representation in linker output
    Does anyone know what "AUTO" means when it appears in the linker output file symbol table. The linker keeps placing some of my variables in the int vector location and the processor freaks out when it...
  • Difference in representation of union
    Hello, in some *.c file I write: union U { unsigned char c[2]; unsigned int i; }u; void fun( void ) { u.c[0] = 0x12; u.c[1] = 0x34; } In C51 u.i = 0x1234 but in C166 u.i = 0x3412...
  • Difference in representation of union
    Hello, in some *.c file I write: union U { unsigned char c[2]; unsigned int i; }u; void fun( void ) { u.c[0] = 0x12; u.c[1] = 0x34; } In C51 u.i = 0x1234 but in C166 u.i = 0x3412...
  • Binary number
    How do I use a binary number so that the compiler understand it? This is what I've done: 10101010b But the compiler gives an error: syntax error near 'b'