Author Topic: C improvements  (Read 13312 times)

bas

  • Full Member
  • ***
  • Posts: 220
    • View Profile
C improvements
« on: February 26, 2014, 03:43:47 PM »
There are initiatives that try to improve the current C language. Below is a list of
initiatives I know of, but I'm also interested if there are others I don't know of yet.
While these initiatives are nice, I feel they fall short of really improving the language. This is
understandable, because they try to remain compatible with C on a language level. I feel that
keeping this compatibitily at a lower (link/library?) level, allows for far greater improvements.
Hopefully we'll be able to demonstrate some in C2.

Edit: interesting LTO link: http://hubicka.blogspot.co.uk/2014/04/linktime-optimization-in-gcc-1-brief.html

Bas
« Last Edit: April 28, 2014, 11:09:59 AM by bas »

kyle

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: C improvements
« Reply #1 on: June 20, 2014, 11:57:49 PM »
Several compilers did bounds checking on arrays over the years, but the only one I can think of that still has it as an option (you might have to built it with the option) is TCC.

With all the damage that recent security holes in C code have cause where buffer overflows played a big role, maybe it is time to think about bounds checking arrays.

Best,
Kyle