Displaying 2 results from an estimated 2 matches for "_validly_".
2016 Jul 26
4
grouping global variables by alignment: safe to do at LLVM level, or only at Clang level?
...ddle of the struct somewhere else far from the start of the
struct.
IOW, a linker is required to handle the code no matter what the source language was and what
its specification says about implementations being allowed to re-order things and whether or
not the language allows the programmer to _validly_ assume that when two arrays of identical
element type are created back-to-back, the second array immediately follows the first, thus
effectively creating a single array with its element count being the sum of the two element
counts of the as-written arrays.
On 07/25/2016 10:53 PM, Mehdi Amini...
2016 Jul 25
7
grouping global variables by alignment: safe to do at LLVM level, or only at Clang level?
Dear all,
Howdy! ;-) This is Abe of the Samsung Austin R&D Center`s compilers team.
As an early part of a project that should help performance on some CPUs, I would like to cause
global variables [at least from C and C++ programs] to be grouped together according to their
alignment needs, which should help to slightly reduce RAM requirements in some cases. IMO this
should be done at