11 Commits
Author SHA1 Message Date
Ethan Hardy 19721bb1c4 Fix #8349: Add const to Max Array C/C++ examples where applicable. (#8350)
As noted by Matt during his [Advent of Compiler Optimizations - Episode
20: Vectorization
[0:55]](https://www.youtube.com/watch?v=d68x8TF7XJs&t=55s), `const` can
and should be introduced here.

We don't need the elements of `y` to be modifiable.

Closes #8349 

<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2025-12-22 19:20:18 -06:00
RabsRincon 43279a61ca Fix various points raised after code reviews
Some fixes, a great slam and then some
2017-12-09 11:19:45 +01:00
Rubén 6f7a4b8b4a Add D examples and beautify all examples names 2017-10-12 02:15:31 +02:00
Matt Godbolt 26d7bfa6fa Fix max array opt version 2017-07-12 12:34:04 -05:00
Matt Godbolt ca7b7ba066 Add ldc 1.3.0 (see #481) 2017-07-12 12:25:48 -05:00
Matt Godbolt d11fb2c206 Merge branch 'master' into msvc-spike
Conflicts:
	app.js
	etc/config/gcc-explorer.lud-ldnmg01.properties
	lib/asm.js
	lib/compile.js
	package.json
	static/asm-mode.js
	static/compiler.js
	test/test.js
2016-10-03 18:03:52 -05:00
Tal Ben-Nun 6580f50d52 Better alignment hint for "max array (optimized)" 2016-06-26 12:30:12 +03:00
Matt Godbolt 4e89ed2db9 Binary mode tweaks 2016-06-13 21:20:30 -05:00
Matt Godbolt 05668f7f79 Improve c++ example 2015-12-08 02:50:34 -06:00
Matt Godbolt efe24d0fb4 Update optimized examples to work with GCC 5.1 and Clang (thanks @cdomville) 2015-06-23 18:24:57 -05:00
Matt Godbolt 43a2173b38 Early rust support 2014-04-30 21:55:02 -05:00