OT arm-gcc hadanka

Jan Matuška hw na starhill.org
Pondělí Prosinec 29 14:55:09 CET 2014


8 a 16?
Dne 29.12.2014 v 13:34 Jan Waclawek napsal(a):
> arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.8.3 20131129
> (release) [ARM/embedded-4_8-branch revision 205641]
>
> c:/PROGRA~1/ARMTools/launchpad.net_gcc-arm-embedded/bin/arm-none-eabi-gcc
> -c -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb  -I.
> -Wpadded -MD -MP -MF .dep/ch.o.d ch.c -o objdir/ch.o
>
>
> Aka je vysledna hodnota a a b?
>
> wek
>
>
> #include <stdint.h>
>
>    typedef struct __attribute__((packed, aligned(1))) {
>      uint16_t a;
>      union {
>        uint32_t b;
>        uint16_t c[3];
>      };
>    } TBar;
>
>    typedef struct __attribute__((packed)) {
>      TBar a;
>      TBar b;
>    } TFoo;
>
>
> const uint32_t a = sizeof(TBar);
> const uint32_t b = sizeof(TFoo);
>
> int main(void) {
> }
>
>
> _______________________________________________
> HW-list mailing list  -  sponsored by www.HW.cz
> Hw-list na list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list



Další informace o konferenci Hw-list