GCC Explorer - An Interactive Compiler
来源:互联网 发布:spss数据分析下载 编辑:程序博客网 时间:2024/05/17 22:30
本文转载至:http://www.i-programmer.info/news/90-tools/4335-gcc-explorer-an-interactive-compiler.html
转载说明:GCC Explorer 是一个在线的编译器,可以查看C/C++代码在对应的编译器下是如何编译成汇编代码,可用于研究学习。
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.
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.
- GCC Explorer - An Interactive Compiler
- An Inline Function is As Fast As a Macro(《Using the GNU Compiler Collection (GCC)》)
- compiler.h & compiler-gcc.h分析
- compiler.h & compiler-gcc.h分析
- 一个交互式森林(An interactive forest)
- Starting an Interactive Client Process in C++
- An Interactive Guide To The Fourier Transform
- An Introduction to Interactive Programming in Python
- Make an interactive website 学习笔记
- bower ENOINT Register requires an interactive shell
- Using GCC’s C++ Compiler
- Using GCC’s C++ Compiler
- Using GCC’s C++ Compiler
- GCC=GNU Compiler Collection
- Using GCC’s C++ Compiler
- Using GCC’s C++ Compiler
- Using GCC’s C++ Compiler
- Compiler knowedge -- gcc & mem management
- Android应用签名
- 【SzNOI语法百题】【d054】值班医生
- HDOJ 1070 Milk
- Android中SQLite应用详解
- JSP自定义标签配置
- GCC Explorer - An Interactive Compiler
- HDU2317 Nasty Hacks【水题】
- 1008_数组元素循环右移问题 (20)
- 【SzNOI语法百题】【d055】谁参加了信息学奥赛
- 2015年1月30号工作日志
- c++ STL 系列之二 vector
- zju acmclub 1077 美丽数
- 用户模式下调用ntdll.dll中NativeApi的测试
- 【SzNOI语法百题】【d056】菱形图案