[Cryptech Tech] C standard
Daniel Cegiełka
daniel.cegielka at gmail.com
Fri Jun 5 16:40:54 UTC 2015
C99 is not set as the default in gcc. Next version of gcc (and clang)
will support the C11 by default.
http://reviews.llvm.org/rL220244
btw. small and easy to audit (C11)
https://github.com/rui314/8cc
Daniel
2015-06-05 16:17 GMT+02:00 Rob Austein <sra at hactrn.net>:
> Question I only just realized I should have asked a while ago: what's
> our target standard for C code? ANSI? C99? C11?
>
> I ask because my own default, from years (OK, decades) of habit, is
> ANSI C. C99 has features that I wouldn't mind being able to use, the
> question is whether we're comfortable with requiring compiler support.
>
> GCC and Clang both support C99. Not sure about Microsoft, doubt we
> care about Microsoft for the green layer, but maybe we do for yellow.
>
> Note that we are already requiring stdint.h, which, strictly speaking,
> is a C99 thing. Of course, adding a trivial header file is not the
> same supporting new language semantics.
>
> If nobody objects, I'll assume that C99 is OK and start using it.
> _______________________________________________
> Tech mailing list
> Tech at cryptech.is
> https://lists.cryptech.is/listinfo/tech
More information about the Tech
mailing list