New tool makes programs more efficient without sacrificing safety functions

March 31, 2011

Computer programs are incorporating more and more safety features to protect users, but those features can also slow the programs down by 1,000 percent or more. Researchers at North Carolina State University have developed a software tool that helps these programs run much more efficiently without sacrificing their safety features.

"These safety features – or meta-functions – can slow a program down so much that software developers will often leave them out entirely," says Dr. James Tuck, an assistant professor of electrical and computer engineering at NC State and leader of the research team that designed the new tool. "Leaving out those features can mean that you don't identify a problem as soon as you could or should, which can be important – particularly if it's a problem that puts your system at risk from attack."

Historically, these safety features have been incorporated directly into a software program's code, and are run through the same core – the central processing unit that serves as the brain of a computer chip – that the program itself uses. That is what slows the program down. Researchers at NC State have developed a tool that takes advantage of multi-core computer chips by running the safety features on a separate core in the same chip – most chips currently contain between four and eight cores – allowing the main program to run at close-to-normal operating speed.

"To give you some idea of the problem, we saw the application we were testing being slowed down by approximately 580 percent," Tuck says. "Utilizing our , we were able to incorporate safety metafunctions, while only slowing the down by approximately 25 percent. That's a huge difference."

This multi-core approach has been tried before, but previous efforts were unwieldy and involved replicating huge chunks of code – a process that was time-consuming and used a great deal of power. The new tool, Tuck says, "significantly streamlines the safety feature work being done by other cores."

Tuck stresses that that tool functions automatically, and does not involve manual reprogramming. In fact, Tuck's team found that the tool is more effective than manual reprogramming for at least some applications, and is far less labor intensive.

The software tool is implemented as a plug-in for the Gnu Compiler Collection of software tools, and Tuck's team is working to fine-tune and extend the tool to support a wider range of applications and meta-functions. "We plan to release the first version of this tool as open-source software later this spring," Tuck says.

Explore further: New hardware boosts communication speed on multi-core chips

More information: A paper describing the research, "Automatic Parallelization of Fine-Grained Meta-Functions on a Chip Multiprocessor," will be presented April 5 at the International Symposium on Code Generation and Optimization in Chamonix, France.

Related Stories

New hardware boosts communication speed on multi-core chips

January 31, 2011

Computer engineers at North Carolina State University have developed hardware that allows programs to operate more efficiently by significantly boosting the speed at which the "cores" on a computer chip communicate with each ...

Software tool helps tap into the power of graphics processing

May 17, 2010

Today's computers rely on powerful graphics processing units (GPUs) to create the spectacular graphics in video games. In fact, these GPUs are now more powerful than the traditional central processing units (CPUs) - or brains ...

New software design technique allows programs to run faster

April 5, 2010

(PhysOrg.com) -- Researchers at North Carolina State University have developed a new approach to software development that will allow common computer programs to run up to 20 percent faster and possibly incorporate new security ...

Software Tool Plugs Security Leaks

August 1, 2007

Often when you make an Internet transaction, symbols on the Web page assure you that your transaction will be secure and that private information about you, such as passwords, bank account or credit card numbers, will not ...

Recommended for you

A not-quite-random walk demystifies the algorithm

December 15, 2017

The algorithm is having a cultural moment. Originally a math and computer science term, algorithms are now used to account for everything from military drone strikes and financial market forecasts to Google search results.

US faces moment of truth on 'net neutrality'

December 14, 2017

The acrimonious battle over "net neutrality" in America comes to a head Thursday with a US agency set to vote to roll back rules enacted two years earlier aimed at preventing a "two-speed" internet.

FCC votes along party lines to end 'net neutrality' (Update)

December 14, 2017

The Federal Communications Commission repealed the Obama-era "net neutrality" rules Thursday, giving internet service providers like Verizon, Comcast and AT&T a free hand to slow or block websites and apps as they see fit ...

The wet road to fast and stable batteries

December 14, 2017

An international team of scientists—including several researchers from the U.S. Department of Energy's (DOE) Argonne National Laboratory—has discovered an anode battery material with superfast charging and stable operation ...

0 comments

Please sign in to add a comment. Registration is free, and takes less than a minute. Read more

Click here to reset your password.
Sign in to get notified via email when new comments are made.