News for hackers. Stuff that matters.
Re:Google developing own CPUs for Chromebook laptops by ithkuil on Saturday October 02, 2021 @04:01PM (#28731568)
Are the tuning models in opensource toolchains for Intel CPUs been released by Intel or figured out over time by opensource developers?
Re:Google developing own CPUs for Chromebook laptops by mhh__ on Saturday October 02, 2021 @05:31PM (#28732265)
Intel publish a very thick optimization manual, which is a good help.

Compilers aren't great at using the real parameters of the chip (i.e. LLVM knows how wide the reader buffer is but I'm not sure if it actually can use the information), but knowing latencies for ISel and things like that is very helpful. To get those details you do need to rely on people like (the god amongst men) agner fog.

Re:Google developing own CPUs for Chromebook laptops by mhh__ on Saturday October 02, 2021 @11:14PM (#28734232)
That should say reorder buffer above.
Re:Google developing own CPUs for Chromebook laptops by kolbusa on Saturday October 02, 2021 @04:33PM (#28731840)
Intel contributes optimizations to gcc and llvm.
Re:Google developing own CPUs for Chromebook laptops by jagger27 on Saturday October 02, 2021 @05:58PM (#28732455)
Apple also contributes plenty to LLVM, more than Intel actually, naively based on commit counts of @apple.com and @intel.com git committer email addresses. This isn't very surprising given that Chris Lattner worked at Apple for over a decade.
Re:Google developing own CPUs for Chromebook laptops by mhh__ on Saturday October 02, 2021 @07:01PM (#28732891)
LLVM is Apple's baby, beyond its genesis under Lattner. They hate the GPL, that's it.

The thing about their contributions is that they upstream stuff they want other people to standardize on but aren't doing it out of love, as far as I can tell e.g. Valve have a direct business interest in having Linux kicking ass, Apple actively loses out (psychologically at least) if a non-apple toolchain is as good as theirs.

Re:Google developing own CPUs for Chromebook laptops by pjmlp on Sunday October 03, 2021 @02:18AM (#28734938)
Apple used to contribute plenty to LLVM.

Nowadays less so, for them C++ support is good enough for what they make out of it (MSL is based on C++14 and IO/Driver Kit use an embedded subset).

The main focus is how well it is churning Objective-C, Swift and their own special flavour of bitcode.

None of them end up upstream as one might wish for.

Re:Google developing own CPUs for Chromebook laptops by ithkuil on Saturday October 02, 2021 @04:40PM (#28731887)
They do now; I think I remember the time when they didn't.