OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 4:14 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Why so many custom-build toolchains?
PostPosted: Wed Jul 11, 2018 6:49 am 
Offline
Member
Member

Joined: Fri Aug 19, 2016 10:28 pm
Posts: 360
Velko wrote:
What about LLVM? The Wiki page is not very generous, but the impression is that there is no need to build one for each target.

I imagine, that some effort is needed in order to obtain OS Specific Toolchain for userspace, but for pure kernel work - isn't pre-built, pre-packaged versions enough?
I accidentally found this page in the wiki. But I doubt that it will work anymore, because llvm has switched to the cmake build system.

Aside from that - llvm will be able to generate code for multiple architectures, and may have some things working as they should be - such as the built-in macros, but the libgcc/compiler-rt problem is still there if you use the stock library. I will speculate here, but assuming that you don't use the stock library (and you don't trigger compilation of code that uses it implicitly), and assuming that you configure the search paths and ABI appropriately (red-zone, sse, etc), there is no reason why the build wont work. Then again, aside from the code generation and the predefined macros, there wont be a lot of shortcuts with llvm.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 36 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group