OSDev.org
https://forum.osdev.org/

There is no rule without exception...
https://forum.osdev.org/viewtopic.php?f=11&t=32695
Page 1 of 1

Author:  Solar [ Tue Jan 16, 2018 2:52 am ]
Post subject:  There is no rule without exception...

When you see someone doing his first post ever, let's say on StackOverflow, complaining that some code of his segfaults when compiled with optimations enabled...

How would you figure the chances that this newcomer has actually found a bug in the compiler?

Microscopic, usually.

Well, it happens.

I found this... instructive. There is no rule without exception.

=D>

Author:  bluemoon [ Tue Jan 16, 2018 2:59 am ]
Post subject:  Re: There is no rule without exception...

I found SO reputation has nothing to do with the user ability.

In most situation you answered a tough question you got +25, while other answered a silly trivial for-loop over an array and get +200.

Parkinson's law of triviality is real.

Author:  Solar [ Tue Jan 16, 2018 3:07 am ]
Post subject:  Re: There is no rule without exception...

No, of course SO rep (or any "rep") is only a poor proxy for ability.

I was merely aiming at the old (and in one-out-of-a-million justified) saying that "it's not the compiler".

Except when it actually is. Which I thought funny, because it happens so very seldom. ;-)

Author:  bluemoon [ Tue Jan 16, 2018 3:29 am ]
Post subject:  Re: There is no rule without exception...

Compiler is so complex that it is more likely to have bug now.

I once found a bug in gcc -O3 vectorization generating nonsense code:

https://stackoverflow.com/questions/370 ... 6#37067436

And the bug report (still open):
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70976

Author:  alexfru [ Tue Jan 16, 2018 4:35 am ]
Post subject:  Re: There is no rule without exception...

Solar wrote:
When you see someone doing his first post ever, let's say on StackOverflow, complaining that some code of his segfaults when compiled with optimations enabled...

How would you figure the chances that this newcomer has actually found a bug in the compiler?

Microscopic, usually.

Well, it happens.

I found this... instructive. There is no rule without exception.

=D>


I've recently optimized a library. In the process I found a couple of compiler bugs and a kernel bug. Three too many. And I wasn't doing anything special I'd say. Just a few "interesting" coincidences. Things had worked until I hit those.

Author:  Korona [ Tue Jan 16, 2018 6:10 pm ]
Post subject:  Re: There is no rule without exception...

I found no invalid code generation bugs in GCC so far but I hit 100s of ICEs when writing heavily templated code in GCC.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/