ISO C: Difference between revisions

From dankwiki
No edit summary
No edit summary
Line 1: Line 1:
== [[GCC|gcc]] support ==
==[[GCC|gcc]] support for C99 language extensions==
* I'd like to [http://gcc.gnu.org/c99status.html further this along]
* I'd like to [http://gcc.gnu.org/c99status.html further this along]


== Threads ==
==Threads==
* Hans Boehm's [http://www.hpl.hp.com/personal/Hans_Boehm/c++mm/ Threads and Memory Model for C++] page is awesome
* Hans Boehm's [http://www.hpl.hp.com/personal/Hans_Boehm/c++mm/ Threads and Memory Model for C++] page is awesome



Revision as of 02:17, 7 August 2009

gcc support for C99 language extensions

Threads

Aliasing

stdint.h

An awesome addition. Type constructions of the form u?int{variety}_t (u prefix denotes unsigned). Varieties include:

  • ptr: Size sufficient to hold a pointer. This is useful for function type definitions, when it's unsure whether a pointer or integer type would be most appropriate for various instances (a void *'s size is not directly related to an int's size by the ANSI C standard).
  • max: Size sufficient to hold any other integer type.
  • fast{8,16,32,64}: Fastest integer type having at least the specified width.
  • least{8,16,32,64}: Minimum native integer type having at least the specified width.
  • {8,16,32,64}: Integer type having precisely this width.