[LLVMdev] Telling clang/LLVM a data object is "near"

Joerg Sonnenberger joerg at britannica.bec.de
Sun Jun 23 12:43:19 PDT 2013


On Sun, Jun 23, 2013 at 10:21:12AM -0700, Ofer Porat wrote:
> Is there a way to tell clang to assume that a piece of data is near, such as
> 
> extern __attribute((assume_near))__ int x;
> 
> and generate code accordingly (i.e. not via GOT access).

Hidden visibility should do exactly that.

Joerg



More information about the llvm-dev mailing list