Newsgroups: comp.arch Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!kithrup.com!mrs From: mrs@kithrup.com (Mike Stump) Subject: Re: The freedom that give us C++ and C Message-ID: Date: Sat, 6 Feb 2016 13:01:32 GMT References: <2016Jan28.170009@mips.complang.tuwien.ac.at> <2016Jan31.085819@mips.complang.tuwien.ac.at> Organization: Kithrup Enterprises, Ld. X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Lines: 59 Xref: csiph.com comp.arch:33516 In article <2016Jan31.085819@mips.complang.tuwien.ac.at>, Anton Ertl wrote: >However, depending on the gcc version, various operations on these >128-bit integers don't work properly; this has gotten better over >time, but it took several years. Yes. I can remember when I did the very first 64-bit port of gcc, in the world. I knew this, because of the bugs I hit. The solution was trivial, just fix them all. Once I did that, it then worked fine. Took about 30 days. 128 bit, is not much different. If someone sat down and fixed all the bugs, they would be gone, until they do, it is an endless stream of bugs where one might say, what a piece of crap. From your experience, sounds like someone finally did fix most of them. Now, structurally, inside gcc, it had historically had a problem with integral type of sizes larger than what the host compiler supported (and had). On a 32-bit host, sizes 32 bits or less worked fine, and 64-bit would not. Then it was improved so that you had a fighting chance of it maybe working with 2x the host type (64-bit on target with a 32-bit host). And then improved to always just work for 2x. Now, I use the past tense, as I put into gcc, the ability to handle any fixed size integral type, period. It is meant to be the very last time we ever do that. Want a 1024 bit integral type on a 32-bit host, no problem. Now, this isn't extended into the front-ends or, into the library code as a machine independent type, so you can't actually use an int1024_t on most ports. But, internally, the compiler won't get it wrong any more. A port is free to define an __int256_t, or an __int1024_t and it will just work. >Why are these features that are useful to programmers neglected by the >gcc maintainers? You were never a customer paying someone for support were you? Those that did, had 100s of bugs fixed. Money is at times a useful way to figure out if something is important or not. Someone that pays $30,000 a year to have 150 bugs fixed, is saying, look, these bugs actually matter, fix those. If you use free support, the raw numbers for open bugs are very roughly around 15% currently. Filed 10, maybe around 2-3 would be open. 8 or 9 would be fixed. I don't have easy access to mean time to resolve, would love to provide that for you. >My theory is: These features are not used in the benchmarks used for >gcc, so instead of working on these things, the gcc maintainers >prefer to work on "optimizations" based on nasal demons. Nope. You think this way, because hate warps your view. If you want a real view, read though 10 bugs, or 1000 bugs, or, all bugs. They are there. They are an open book. We don't reason by way of nasal demons. We fix what users report. Users report, what they would like to see fixed. Most of the bugs are just random, you blew it and what you did is just wrong. Go now, read through 10, and you can update your view on what users report, and what we do with those reports and how long it takes to resolve them. Let us know what you fine.