Hacker News new | ask | show | jobs
by teddyh 1362 days ago
If only it stayed permissive, it wouldn’t be a problem. But hardware companies making proprietary compilers based on LLVM is a problem if the users of the hardware then have no free compiler available. If there was no LLVM to fork and take proprietary, the users would have free GCC available to them, since the hardware company would have used GCC, which requires the company to release the hardware support. They would release it, since it does not affect their primary source of income, which is hardware. But if LLVM is available, they will get dollar signs in their eyes, and have visions of selling expensive proprietary compilers to a captive market (i.e. owners of their hardware).
1 comments

> But if LLVM is available, they will get dollar signs in their eyes, and have visions of selling expensive proprietary compilers to a captive market (i.e. owners of their hardware).

This is literally not what is happening in the real world though. Counter example: NEC SX Aurora (literally developed in the open https://github.com/sx-aurora-dev/llvm-project), Fujitsu A64FX (free LLVM based compiler, $$$$ proprietary home grown compiler), AMD with hipSYCL. The reason for this if there was no LLVM available, the compiler would be totally proprietary. This from scratch compiler would have been more expensive to make leading it to not being available for free but instead licensed at huge cost. There has been no uptake of GCC for this role since it's inception. We both know why.

And even if a $$$$ using LLVM is made i would prefer that over a fully custom compiler. I can link against it like a LLVM compiler and you can learn a lot about a unknown platform from how LLVM compiles for it, making reverse engineering a lot easier compared to a proprietary compiler.

> This is literally not what is happening in the real world though.

Give it time. You know what happened with GCC on the NeXT computer; the only reason the NeXT compiler became free is because NeXT had to release it, since they based it on GCC.

> There has been no uptake of GCC for this role since it's inception. We both know why.

We do not. I was under the impression that the GCC stance on modularity has mellowed in recent times.

> using LLVM is made i would prefer that over a fully custom compiler.

False dichotomy. I would prefer GCC.