Simon Robic


GCC sort en version 4.4.4

Image 5.png

GCC, sans doute le plus célèbre des compilateurs, sort en version 4.4.4. Au programme : 220 bugs fixés, et quelques ajouts :

* Type discovery — This generic programming extension permits the identification of a type by referencing a variable.

* Range — Jones shows how range extensions can be used for initializations, as well as simplifying case statements within switch/case blocks.

* Zero-length arrays — This example shows how to use zero-length arrays to permit a structure element to reference memory that follows and is contiguous with the structure instance. This is particularly useful when a variable number of array members is required, writes Jones.

* Determining call address — GCC’s « __builtin_return_address » function is typically used for debugging.

* Constant detection — Is a value a constant at compile-time? Only the constant detection extension knows for sure. The Linux kernel makes frequent use of this extension, writes Jones.

* Function attributes — Here, Jones surveys those attributes that are associated with functionality, including always_incline, deprecated, __used__, __const__, and warn_unused_result.

et quelques optimisations :

* Branch prediction hints — This frequently used extension helps indicate the likelihood of the results of conditional code.

* Prefetching — Used to cache data in memory close to the processor, the prefetching extension is frequently employed by the Linux kernel by means of macros and wrapper functions.

* Variable attributes — This class of attributes is used for variables and type definitions. Jones explores the « aligned » attribute, which is used for object alignment in memory.

N’hésitez donc pas à mettre vos GCC à jour, amis développeurs :)

Leave a comment

0 Comments.

Leave a Reply


[ Ctrl + Enter ]