[LLVMdev] [cfe-dev] Extend llvm to fix global addresses

Peter Cooper peter_cooper at apple.com
Tue Dec 6 15:29:08 PST 2011


The best case i can think of is embedded developers needing to layout functions or globals in memory.  
Currently they would have to resort to a linker script or assembly hacks for this.  

But anything which avoids the horrible int* cast has to be a good thing.  For one thing it would cause alias analysis a lot of pain.
On Dec 6, 2011, at 3:23 PM, David Blaikie wrote:

>> We've spoken to several people who do write drivers and
>> other code like the above, and they seem pretty enthusiastic about the
>> idea.  If you have input about how best to design this, at any of the levels
>> Peter spelled out, that would be interesting.
> 
> I'm curious what the particular benefits/differences would be between
> this language feature & the existing solution (casting constant
> integer values to pointers). This wasn't clear to me from the original
> post.
> 
> Perhaps some (even straw man) example code?
> 
> - David
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list