mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-04 00:41:27 -06:00
Binary mode tweaks
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
isCl=true
|
||||
compileToAsm=/FAsc
|
||||
compileToBinary=/FAsc
|
||||
supportsBinary=true
|
||||
|
||||
@@ -12,7 +12,11 @@ int testFunction(int* input, int length) {
|
||||
|| __has_builtin(__builtin_assume_aligned)
|
||||
input = static_cast<int*>(__builtin_assume_aligned(input, 64));
|
||||
#endif
|
||||
#if _MSC_VER
|
||||
__assume((length & 63) == 0);
|
||||
#else
|
||||
if (length & 63) __builtin_unreachable();
|
||||
#endif
|
||||
int sum = 0;
|
||||
for (int i = 0; i < length; ++i) {
|
||||
sum += input[i];
|
||||
|
||||
+1
-1
@@ -215,7 +215,7 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var directive = /^\s*(\.|([_A-Z]+\b))/;
|
||||
var labelDefinition = /^([a-zA-Z0-9$_.]+):/;
|
||||
var commentOnly = /^\s*([#@;]|\/\/).*/;
|
||||
|
||||
+1
-1
@@ -261,7 +261,7 @@ Compile.prototype.compile = function (source, compiler, options, filters) {
|
||||
if (!filters.binary) {
|
||||
compileToAsm = compilerProps("compileToAsm", "-S").split(" ");
|
||||
} else {
|
||||
compileToAsm = [];
|
||||
compileToAsm = compilerProps("compileToBinary", "").split(" ");
|
||||
}
|
||||
if (compilerInfo.isCl) {
|
||||
options = options.concat(['/c', '/Fa' + outputFilename, '/Fo' + outputFilename + ".obj"]);
|
||||
|
||||
Reference in New Issue
Block a user