OpenSource For You

Microsoft releases C language extension powered by open source

-

Microsoft has released a new research project called Checked C that is an extension of the existing C language. The new offering emerges as an open source solution to detect and prevent common programmin­g errors.

Unlike developing an all-new language for the developer world, Microsoft Research has modified the original C to offer programmer­s some new pointer and array types through its Checked C extension. The project itself is written in C and is available under the MIT License.

The availabili­ty of new pointer types ensures safety in code. It is aimed at reducing the number of vulnerabil­ities and puts a stop to the bugs that caused some serious issues like Heartbleed, in the recent past.

“Checked C allows programmer­s to better describe how they intend to use pointers and the range of memory occupied by data that a pointer points to. This informatio­n is then used to add checking at runtime to detect mistakes where the wrong data is accessed, instead of the error occurring silently and without detection. This informatio­n can also be used to detect programmin­g errors while the program is being written,” a member of the Microsoft research team wrote in a blog post.

The process of checking is not new and was already debuted on programmin­g languages like C# and Java. But Microsoft’s Checked C stretches this ‘bounds-checking’ by letting developers control the placement of informatio­n needed and how the informatio­n flows within the code. It helps in providing better control of the program.

Programs that are written in C language need to be converted either file by file or function by function. This enables the detection of errors and offers backward compatibil­ity with existing C developmen­ts.

Microsoft has created native Checked C clang and LLVM repositori­es to provide compiler implementa­tion. The project is additional­ly accessible through GitHub. However, the project is yet to influence developers in a big way.

 ??  ??

Newspapers in English

Newspapers from India