Fix unused label issues

Treat labels which are used only by directives in other labels as used
if the other label itself is used by an opcode: that is, propagate the
transitive usage of labels.

Fixes #35
5 files changed
tree: d3404436b9a0f8954357615230b6952bc4ea8982
  1. .bowerrc
  2. .gdb_history
  3. .gitignore
  4. .idea/
  5. .jshintrc
  6. .travis.yml
  7. LICENSE
  8. Makefile
  9. Notes.md
  10. README.md
  11. app.build.js
  12. app.js
  13. bower.json
  14. c-preload/
  15. d/
  16. etc/
  17. examples/
  18. gdb.txt
  19. launch_c++_port_10241.sh
  20. launch_port_10241.sh
  21. lib/
  22. package.json
  23. static-old/
  24. static/
  25. test/
README.md

Build Status Codewake

GCC Explorer

GCC Explorer is an interactive compiler. The left-hand pane shows editable C/C++ code. The right, the assembly output of having compiled the code with a given compiler and settings.

Try out the demo site!

Developing

GCC Explorer is written in node.

Assuming you have npm and node installed, simply running make ought to get you up and running with a GCC explorer running on port 10240 on your local machine: http://localhost:10240

If you want to point it at your own GCC or similar binaries, either edit the etc/config/gcc-explorer.defaults.properties or else make a new one with the name gcc-explorer.YOURHOSTNAME.properties. The config system leaves a lot to be desired, I'm working on porting CCS to javascript and then something more rational can be used.

Feel free to raise an issue on github or email me directly for more help.