Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

LLVM for DOS/DJGPP? (Developers)

posted by Rugxulo Homepage, Usono, 08.09.2011, 23:01

I've only very vaguely tried it. It's darn good, but it's not 100% as fast in all cases as GCC output (see Phoronix benchmarks?). But it's close (or even better) for average cases. It's "production ready", hence I think? Apple ships it by default now. Part of their motivation was embedding inside IDEs without source code clashes. (Like *BSD systems, they shun GPLv3 in their base system, hence their GCC is only 4.2.1, last GPLv2.) It's also faster, better scalability, better error messages, and uses less memory. Though honestly I don't know if they've written their own linker or still rely on GNU for that.

Clang can build the FreeBSD kernel and possibly others (rough work done for Linux). Its default is C99 mode (and C++, natch, since it can self-host and is written in C++). It has its own C++ runtime and library (I think?). Yes, it supports multiple targets, but that mostly just is what Apple uses: x86, x86-64, ARM. IIRC they have a C backend for others, but I have no idea if that works well.

For good or bad, LLVM-GCC is deprecated and will not be further updated. They are switching entirely to Clang frontend (C, C++, Obj C, some GCC-compatible extensions).

I'm surprised they got this far this quickly (relatively speaking) since this kind of stuff isn't fast work. Of course, now they (and even G++) have to play catch up to the new C++11 standard, which will probably take a few years, heh. Then comes C1X.

 

Complete thread:

Back to the forum
Board view  Mix view
22758 Postings in 2121 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum