mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 08:08:02 -06:00
This commit adds support for hosting on windows, as well as better support for the Visual C++ compiler. Specific interesting changes are: - switch from /FAsc to /FA - order functions in file order - support demangling win32-style identifiers with undname - clang++ and vc++ on win32 host are both supported
18 lines
310 B
C++
Generated
18 lines
310 B
C++
Generated
// compile flags:
|
|
// [arm] cl /O2 /FA /c arm-moose-example.cpp /Faarm-moose.asm
|
|
|
|
extern "C" {
|
|
static int thing(int a) {
|
|
return a * a;
|
|
}
|
|
|
|
int moose(int x, int y) {
|
|
int foo = 1;
|
|
|
|
for (int i = 0; i < y; ++i) {
|
|
foo += thing(x);
|
|
}
|
|
return foo;
|
|
}
|
|
}
|