6 ms·
PS4's LLVM-based Developer Toolchain [pdf]
- jmgrosen 13y agoFunction-level optnone is definitely something I would appreciate as well. Optimized code can often look nothing like the original code... and having the whole binary non-optimized is just too slow.
- jevinskie 13y agoI'm eagerly awaiting its inclusion. It isn't as simple of a task as it would seem. Unfortunately, you can't simply disable all of the passes in LLVM. Some aren't optimizations at all and are transforms required for subsequent optimization passes. MachineFunction passes are even trickier. Some are strictly necessary for correct codegen.
- asmman1 13y agoWhat was used before? gcc?
- alepper 13y agoSlide 13. TL;DR: From Sony, yes - as well as an independent third party toolchain.
- jevinskie 13y agoThat is now a first-party toolchain after acquisition.
- maximilianburke 13y agoThe PS3 uses both SNC and GCC (4.1). The developer has a choice of using SNC or GCC when generating code for the PPU -- the general purpose processor on the PS3 -- but only GCC is available when building code for the SPUs. SNC is (was?) a great compiler. The code it generated was faster and significantly smaller than that generated by GCC, while being much faster at building to boot. Later versions of SNC added limited C++11 support as well.
- chucknelson 13y agoAnyone else find it strange that these slides are filled with some pretty hardcore technical jargon, yet on one of the slides they feel the need to clarify "GDDR5 is very high end graphics memory only found on PC graphics cards"? :)
- aardvark179 13y agoOften if you are representing a large company or product you have to go through some brand approval process with your presentation, so spec summaries frequently get the standard marketing descriptions added. It seems stupid in context, but the concern is often the slide being shown out of context.
- adamnemecek 13y agoIt was given at some LLVM conference so most people in the audience are probably compiler people who will probably know a lot about compilers and less about GPUs.
- malkia 13y agohttp://llvm.org/devmtg/2013-11/videos/Robinson-PS4Toolchain-360.mov http://llvm.org/devmtg/2013-11/videos/Robinson-PS4Toolchain-...
- shaggyfrog 13y agoMy kingdom for a proper technical report instead of a slide deck consisting of thick walls of bullet points.
- nomadlogic 13y agoWonder how big of a factor that the upstream PS4 OS codebase now using LLVM/Clang was in this decision. Even if the PS4 wasn't FreeBSD based I can see the switch making sense on it's own tbh.
- Sanddancer 13y agoDoesn't seem like any factor, there. The PS4 is using FreeBSD 9 as the kernel, which was still built with gcc.
- wereHamster 13y agoI wonder why they wrote their own linker instead of improving gold.
- axman6 13y agoIsn't gold specifically targetted at x86 and/or linux only (I can't remember which)? Having it as part of the LLVM project means they can use a lot of the infrastructure that already exists, and exists to used as libraries, and also allows them to write the code as another set of libraries for use in other unforseen systems. It's also aimed at being a generic linker for use on many different platforms. I don't think gold has these goals; from I remember they were just after speed on their target platform.
- wereHamster 13y agoThe PS4 is x86. And I wouldn't be surprised if it used ELF (like the PS2/3). Though I can't find any mention of the format that's being used.
- deleted 13y ago[deleted]
- pmjordan 13y agoThe executable binary generally dwarfs the assets (textures, models, level data, audio, etc.) so I doubt it makes sense to defer downloading code. If anything, you'd put any level-specific native code (rare these days - it's mainly scripts) into dynamically loaded libraries.
- malkia 13y agoThe executable has to be read from the disk, and until it's fully loaded nothing would show. Since startup time must be minimized it's good to keep your executable size small. Also newer versions would be smaller for updates off the internet. Most of all the executable has to be linked over and over again (by developers) and then copied or written to the some kind of disk/drive somewhere to start it. But as you've said, maybe moving some big clunky parts to dll would help.