struct SmallVar { int field; char buffer[0xeee - sizeof(int)];
};
// The single .tdata section should have a size that isn't a multiple of its // alignment.
__thread struct AlignedVar var1 = {13};
__thread struct AlignedVar var2 = {17};
__thread struct SmallVar var3 = {19};
static uintptr_t var_addr(void* value) { // Maybe the optimizer would assume that the variable has the alignment it is // declared with. asmvolatile("" : "+r,m"(value) : : "memory"); returnreinterpret_cast<uintptr_t>(value);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.