Commit Graph
44 Commits
Author SHA1 Message Date
Matt Godbolt 767351f5d4 Fixes #555 2017-10-06 08:26:26 -05:00
Matt Godbolt 83ff13813b Better handling of labels in asm.
* Treats `FOO = BAR` like label definitions
* Uses `.globl` and `.global` as roots for detecting interesting symbols
* No longer assumes all uninteresting variables start with `.`

Fixes #320
2017-10-04 22:49:38 -05:00
Rubén 65c6ff79d8 Finish up Cfg view review concerns 2017-09-26 12:57:47 +02:00
cppchedy 747ee239c2 added test, resolved some reviews 2017-09-25 22:21:13 +01:00
Matt Godbolt 476fde3c4c Identify lines referring to included files.
Now the API returns `source: {line: num, file: x}` where x
is null for the user-supplied file and a path otherwise.

Hopefully fixes #353, and #418 and #417 - previosuly we misidentified
external lines as being for this file, so the STL includes (for example)
would be misinterpreted as being local. As the STL includes are huge,
we'd try and colourise line 600, or similar.

Tests updated accordingly.
2017-07-30 08:49:24 -05:00
Matt Godbolt ddddc8e086 Read-only embedded 2017-03-06 21:50:15 -06:00
Matt Godbolt 65b5bf49c4 Correctly identify PROC and ENDP even when a comment is on the same line. Fixes #235 2017-01-12 17:32:54 -06:00
Matt Godbolt 538b4e86f8 Fix tests 2017-01-02 12:11:27 -06:00
Matt Godbolt b6e9a4658b Another year, another copyright update 2017-01-02 10:14:46 -06:00
Matt Godbolt 050f5e3c3c Properly treat MIPS label definitions. Fixes #214 2016-12-23 16:33:21 -06:00
Matt Godbolt ed12b7e932 Filter out more labels that are unreferenced 2016-12-20 17:45:45 -06:00
Matt Godbolt 88897a2813 Fix for ARM 2016-12-19 23:28:56 -06:00
Matt Godbolt a91e1ee6e7 Fix up initial labels/function definitions. 2016-12-19 23:15:18 -06:00
Matt Godbolt 9af5650aff Refactor so as not to rely on magic comments in MS-derived compilation output 2016-12-19 18:20:21 -06:00
Matt Godbolt 0362e0cbae Send opcodes as strings. Fix up ARM opcode and label handling 2016-12-09 06:17:59 -06:00
Matt Godbolt 70b8d2d178 Fix filtering of labels of defined functions.
Addresses #192
2016-11-24 11:59:49 -06:00
Matt Godbolt bc5848fa58 Adding more tests; beginnings of a refactor to make compilers more configurable 2016-11-16 21:52:05 -06:00
Matt Godbolt 49932af0fa Work in progress on WINE/win32/win64 compiler support 2016-11-09 18:07:51 -06:00
Matt Godbolt ad40e5c59a Improvements to embedding 2016-10-28 07:56:10 -05:00
Matt Godbolt 0cda1b839a Work in progress on embeddable CEs 2016-10-27 20:13:34 -05:00
Matt Godbolt ce82847723 Fix up AVR line processing. Fixes #164 2016-10-22 09:31:01 -05:00
Matt Godbolt 610d646866 Improvements to CL parser 2016-10-17 08:17:00 -05:00
Matt Godbolt 31ab052d85 Allow configuration of the 'Intel Syntax' per-compiler. Configure same for clang and iccpython 2016-10-13 07:30:55 -05:00
Matt Godbolt ecb5aa34a0 Add an example 64-bit msvc compile 2016-10-06 06:35:12 -05:00
Matt Godbolt d11fb2c206 Merge branch 'master' into msvc-spike
Conflicts:
	app.js
	etc/config/gcc-explorer.lud-ldnmg01.properties
	lib/asm.js
	lib/compile.js
	package.json
	static/asm-mode.js
	static/compiler.js
	test/test.js
2016-10-03 18:03:52 -05:00
Matt Godbolt fa4406b186 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
2016-09-20 12:39:24 -05:00
Matt Godbolt b9aca47516 Hopefully fix the line labelling issue 2016-06-13 17:36:54 -05:00
Matt Godbolt 909620cb2c Fixups for add instruction 2016-06-13 08:31:38 -05:00
Matt Godbolt 1db8614712 Add another test case (no expectation as yet) 2016-06-13 13:14:13 +00:00
Matt Godbolt 55deadf227 Use two-space indentation to better align with cl raw output 2016-06-13 07:25:45 -05:00
Matt Godbolt 284738fb05 Fix up indentation of non-opcode lines 2016-06-13 07:19:57 -05:00
Matt Godbolt 57db760826 Pretty print blessed files 2016-06-13 07:17:02 -05:00
Matt Godbolt 16bcc58fc5 Some indentation 2016-06-12 17:00:59 -05:00
Matt Godbolt 7e50f2cfc4 Better way of detecting the file under test 2016-06-12 16:57:21 -05:00
Matt Godbolt 0d6df6a2dd Progress on supporting cl asm; binary mode and demangling 2016-06-12 16:32:28 -05:00
Matt Godbolt 352d2b605e Move towards json files for tests 2016-06-10 16:47:38 -05:00
Matt Godbolt d6fe745230 More work in progress on win32 2016-06-07 22:06:57 -05:00
Matt Godbolt e636df32f4 Add failing test 2016-06-03 02:59:01 +00:00
Matt Godbolt 8610ec9316 Update copyright 2016-04-05 21:39:41 -05:00
Matt Godbolt 5bf3f5bef3 Fix tests 2015-11-26 13:26:25 -06:00
Matt Godbolt 39b85dfc1d Fix clang line indicators. Fixes #85 2015-11-11 07:42:34 -06:00
Matt Godbolt c9bc4eef58 Copyright update, formatting changes 2015-01-12 07:21:22 -06:00
Matt Godbolt c60cad2e7e Add IDEA files.
Update copyrights, fix jslint issues, tidy code.
2014-11-26 08:24:40 -06:00
Matt Godbolt da98a1e24f Big fix up of asm filtering. Adds a bunch of tests too. 2012-07-03 15:45:45 -05:00