标题: C11:NEW FEATURES [打印本页] 作者: KBTiller 时间: 2012-05-05 18:10 标题: C11:NEW FEATURES 本帖最后由 KBTiller 于 2012-05-05 21:47 编辑
(N1570)
— conditional (optional) features (including some that were previously mandatory)
— support for multiple threads of execution including an improved memory sequencing model, atomic objects, and thread-local storage (<stdatomic.h> and <threads.h>)
— additional floating-point characteristic macros (<float.h>)
— querying and specifying alignment of objects (<stdalign.h>, <stdlib.h>)
— Unicode characters and strings (<uchar.h>) (originally specified in ISO/IEC TR 19769:2004)
— type-generic expressions
— static assertions
— anonymous structures and unions
— no-return functions
— macros to create complex numbers (<complex.h>)
— support for opening files for exclusive access
— removed the gets function (<stdio.h>)
— added the aligned_alloc, at_quick_exit, and quick_exit functions (<stdlib.h>)
— (conditional) support for bounds-checking interfaces (originally specified in ISO/IEC TR 24731−1:2007)
— (conditional) support for analyzability作者: KBTiller 时间: 2012-05-05 18:16 本帖最后由 KBTiller 于 2012-05-06 18:26 编辑
conditional features :
atomic type ( <stdatomic.h> )
Atomic types are a conditional feature that implementations need not support; see 6.10.8.3.
Analyzability (Annex L)
bounds-checking interfaces (Annex K)
support for multiple threads of execution( <threads.h> )
IEC 60559 floating-point arithmetic(annex F)
IEC 60559 compatible complex arithmetic(annex G)
previously mandatory
C11:
(6.2.5)Complex types are a conditional feature that implementations need not support; see 6.10.8.3.
(6.7.6.2)
Variable length arrays are a conditional feature that implementations need not support; see 6.10.8.3.
C99:
(6.7.2)The type specifier _Complex shall not be used if the implementation does not provide complex types.
Freestanding implementations are not required to provide complex types.作者: 幻の上帝 时间: 2012-05-05 20:32
N1750?……不是N1570?
WG14上官方文档最近才N1600多点。
2012-03 PostKona-2012 mailing N1598-N1613 作者: peijue 时间: 2012-05-05 20:43
nnd 最近项目用vc6做的 标准什么的 听听就好了作者: KBTiller 时间: 2012-05-05 21:48 回复 3# 幻の上帝
作者: KBTiller 时间: 2012-05-08 18:28
3.14
memory location
either an object of scalar type, or a maximal sequence of adjacent bit-fields all having nonzero width