GCC Explorer - An Interactive Compiler
GCC Explorer - An Interactive Compiler
Written by Nikos Vaggalis   
Monday, 11 June 2012

An intuitive web based tool targeted at C++ programmers and useful for researching,debugging and optimizing code has been made available.

GCC Explorer is the brainchild of Matt Godbolt who explains his reasons for creating it in his blog:

One of the things I spend a fair amount of time doing at work is compiling my C/C++ code and looking at the disassembly output. Call me old-fashioned, but I think sometimes the only way to really grok your code is to see what the processor will actually execute. Particularly with some of the newer features of C++11 — lambdas, move constructors, threading primitives etc — it’s nice to be able to see how your elegant code becomes beautiful (and maybe even fairly optimal) machine code.

Having crafted a web-based tool for exploring the output of the compiler under small tweaks of the code, compiler version and compiler flags, Matt was given permission by his company to open source it.

ccomplier

 

The latest release of GCC Explorer has added more compilers GCC4.7, AVR, ARM, MSP to those available at launch. It now has filters to remove clutter such as unused labels, directives and extraneous comments from the generated assembler and permanent links are supported enabling users to generate a link to their examples. Security fixes also make it safer to run on publicly accessible websites.

 

To try it out go to http://gcc.godbolt.org/

If you know even a little assembler it is a great educational tool.
 

The code of GCC Explorer is available on github. 

 

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

 

Banner

 


Angular 2 Fundamentals - The Coolest Course In Existence
05/09/2016

This has to be one of the most interesting online courses I've ever come across, mainly down to the instructor's hip and fast talking sprinkled with the right amount of "yo's" and "hey's" that make it [ ... ]



The Weekly Top 10: Professional Development
02/09/2016

This week's catch of blog posts that might otherwise have escaped you notice starts with stats on in-demand programming languages. It then looks at the website development process and introduces new t [ ... ]


More News

 

blog comments powered by Disqus

 

 

Last Updated ( Tuesday, 12 June 2012 )
 
 

   
Banner
RSS feed of news items only
I Programmer News
Copyright © 2016 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.