[cfe-dev] Compiling xv6 with Clang

David Blaikie via cfe-dev cfe-dev at lists.llvm.org
Sun Nov 4 07:58:19 PST 2018


Hard to say without more info - it's possible that Clang doesn't produce as
compact code as GCC in some cases. You can try compiling with optimization
modes that prioritize code size: -Os and -Oz (one of them is more
agrgessive, I forget which)

On Sun, Nov 4, 2018 at 3:30 AM Ahmad Nouralizadeh Khorrami via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hi.
> I tried to compile xv6 (a 10000 line teaching operating system from MIT)
> with Clang instead of GCC, but it led to an error. The compiled bootblock
> was larger than 1 sector (i.e., 512 bytes). Should I change the compiler
> options? How?
> Thanks!
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20181104/bb884c54/attachment.html>


More information about the cfe-dev mailing list