[llvm-dev] Port to other Operating Systems

A. D. Sharpe via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 12 14:06:46 PDT 2016


On 10/12/2016 7:42 AM, John Reagan wrote:
> So you want to host on FreeBSD and target Pyro.
Yes, with the goal of moving hosting to Pyro.

> Since you are using some gcc version for Pyro, does that mean you are using
> standard ELF/DWARF?  Where does your linker come from?  Can it handle the
> appropriate relocations?
Yes, we are using standard ELF/DWARF. Our entire toolchain is GNU, 
something that we're hoping to change by moving to LLVM. Currently, we 
can handle relocations, however there ARE issues with our implementation 
-it's incomplete.

> Looking at your somewhat outdated www.pyro-os.org, Pyro looks essentially
> UNIX like given the software packages listed.  Looking further at the Syllable
> website confirms that.
Yes, we're UNIX like, but we aren't UNIX. We have POSIX compatibility, 
but it's merely a means to an end, not a priority.

> I don't see anything particularly difficult unless you've added/modified the
> ELF/DWARF/relocations in the object or image files.  Just tell LLVM that you
> are x86-64 Linux and see what you get.  For instance, I haven't added OpenVMS
> as a triple, we use the x86-64 Linux triple.  We might have enough differences
> that I might lobby for my own triple, but I'm not anywhere near that place
> yet.
Ok, that makes a lot of sense. I think I'll use that approach, though 
it'll probably be the x86-64 FreeBSD triple. I wasn't aware that 
lobbying was necessary, however, I'm very new to dealing with LLVM.


-- 
Regards,

Apollo D. Sharpe, Sr.



More information about the llvm-dev mailing list