[LLVMdev] Is address space 1 reserved?

Owen Anderson resistor at mac.com
Wed Jan 7 11:25:24 PST 2015


I'm not aware of any such restriction, and I know of several LLVM based systems that use address space 1 for something other than that.

-Owen

> On Jan 7, 2015, at 1:18 PM, Philip Reames <listmail at philipreames.com> wrote:
> 
> On the review for http://reviews.llvm.org/D6808, majnemer commented that:
> "Address space 1 has a special meaning in LLVM, it's identical to address space 0 except for the fact that "null" may be dereferenced. You might want to consider a different address space."
> 
> This is the first I've heard of this and I can't find any documentation about it being reserved, either in general, or specifically for x86.  Can anyone clarify?
> 
> The only address spaces with special meanings I know of are:
> - 0 (the normal address space, null is not dereferencable)
> - 256 - TLS, GS relative addressing
> - 257 - FS relative addressing
> 
> Philip
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150107/447f1b00/attachment.html>


More information about the llvm-dev mailing list