<div dir="ltr"><div>Hi friendly clang developers,</div><div><br></div><div>I recently hit an issue on finding clang's equivalent flags for gcc's '-mlarge-data-threshold' flag.<br></div><div><br></div><div>In
g++, when specifying -mcmodel=medium, it would still place small-sized
data symbols in the first 2GB of RAM, and only data symbols larger than
'large-data-threshold' are put into higher RAM addresses.</div><div><br></div><div>It
seems like clang++ supports '-mcmodel=medium' as well. However, it
unconditionally assumes everything could be in higher RAM addresses,
resulting in slightly less efficient instructions for small symbols,
which could just live in the first 2GB.</div><div><br></div><div>While
this is of course a minor issue, I'm wondering if there is any
workaround for this issue? Any kind of workaround is welcomed -- just
wanna know if there's a way to somehow annotate a data symbol so it
could live in the first 2GB.</div><div><br></div><div>Thanks for your time!</div><div><div><br></div><div>(sorry if this message is posted twice, my first post might have bounced since I was not a member of the list)</div><div><br></div></div><div>Best,</div><div>Haoran</div></div>