[cfe-dev] Clang and -mcmodel=large

Evan Cheng evan.cheng at apple.com
Sun Jun 7 20:25:00 PDT 2009


The support for large code model in LLVM x86_64 backend is incomplete.

Evan

On Jun 7, 2009, at 10:48 AM, Eli Friedman wrote:

> On Sat, Jun 6, 2009 at 10:57 AM, Andrea OrrĂ¹<andreaorru91 at gmail.com>  
> wrote:
>> Hello all,
>>
>> I'm developing a hobby kernel for x86-64 machines,
>> and I put the kernel into the higher half.
>>
>> I'm trying to switch from GCC to Clang, but it seems
>> that the latter doesn't support the -mcmodel=large
>> option, which is required in order to put the kernel
>> at the 0xFFFF800000000000 in virtual memory,
>> as specified in my linker script:
>> http://pastebin.com/f2f9e0112
>>
>> Any workarounds or plans for implementing that feature
>> in the Clang compiler?
>
> Try passing "-mllvm -code-model=large" to clang.
>
> -Eli
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list