Commit Graph
52 Commits
Author SHA1 Message Date
Rubén 556c41af21 Merge pull request #632 from partouf/fpcdemangle
fpc demangle assembly labels
2017-11-28 22:47:32 +01:00
partouf ef9ed6d2e4 if binaryHideFuncRe doesnt have a value, assume everything is a userfunction 2017-11-28 21:04:19 +01:00
RabsRincon bc28b43f88 Revert incorrect Regex fix in asm filtering 2017-11-26 11:49:36 +01:00
RabsRincon 7a184eefc2 Add code tracking for Go
Adresses #650 but @mattgodbolt should take a look at this
	before pushinAdd code tracking for Go
2017-11-26 03:05:34 +01:00
partouf ab05526b7f extra functionality needed for non-standard assembly outputs 2017-11-24 18:08:32 +01:00
cppchedy 0882e6b612 fix #629 2017-11-24 16:27:30 +01:00
Marc Poulhiès 9784aa54bf Better handling of assignments in assembly
Some assembly syntax can use '='. Refine asm filtering to only
consider as assignements statements of the form:

 Some_Name = Some Thing Else

ie. Checks that LHS has exactly 1 element.
Include a new test using such assembly.

fix #620
2017-11-14 13:26:29 +01:00
Matt Godbolt 54aa4a52d5 Generate new-style source annotation in binary mode. Fixes #553 2017-10-06 08:31:06 -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
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 9c0151997d Improvements to embedded views 2017-07-21 08:34:50 -05: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 49932af0fa Work in progress on WINE/win32/win64 compiler support 2016-11-09 18:07:51 -06:00
Matt Godbolt ce82847723 Fix up AVR line processing. Fixes #164 2016-10-22 09:31:01 -05:00
Johan Engelen fb9fa78cc9 Fix file match for colorizing 2016-10-19 20:56:37 +02:00
Matt Godbolt 3dd7fd7312 Extract some things, remove TODOs 2016-10-17 18:44:48 -05:00
Matt Godbolt 630235dc0b Merge branch 'msvc-spike' 2016-10-17 08:17:40 -05:00
Matt Godbolt 610d646866 Improvements to CL parser 2016-10-17 08:17:00 -05:00
Matt Godbolt 6fc5c166da Lint fixes 2016-10-12 13:26:16 -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 c9b8f5aad3 Tidy up some jshint warnings in the server 2016-09-29 07:49:01 -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 4e89ed2db9 Binary mode tweaks 2016-06-13 21:20:30 -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 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 16bcc58fc5 Some indentation 2016-06-12 17:00:59 -05:00
Matt Godbolt 61040b12e7 Ahem 2016-06-12 16:58:41 -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 5c86a22920 Slightly better cl19 support 2016-06-02 14:24:19 +00:00
Matt Godbolt 3634b82592 Initial spike of windows support 2016-06-02 12:57:26 +00:00
Matt Godbolt 8610ec9316 Update copyright 2016-04-05 21:39:41 -05:00
Matt Godbolt e946833088 Handle compilation errors in binary 2015-11-28 10:49:35 -06:00
Matt Godbolt bbc8cb079e Slight indent for asm to make it look like 'asm' for the asm mode 2015-11-27 15:30:57 -06:00
Matt Godbolt 62856d2414 Merge branch 'master' into spike/binary
Conflicts:
	lib/asm.js
2015-11-26 13:20:33 -06:00
Matt Godbolt 79a0f6e12d Misc WIP on changing configuration to be lang-specific and to fix up some more binary things found along the way 2015-11-26 13:12:56 -06:00
Matt Godbolt d68472fed4 Convert tabs to spaces. Fixes #57 2015-11-25 15:18:10 -06:00
Matt Godbolt cee503ae6c First stab at multilanguage binary 2015-11-24 07:53:34 -06:00
Matt Godbolt d7e318b647 Misc tidyups 2015-11-23 23:22:19 -06:00
Matt Godbolt b8dac7e4ee Clickable addresses 2015-11-23 22:26:00 -06:00
Matt Godbolt 0f95490370 Add address and opcodes to gutters 2015-11-23 18:19:27 -06:00