Files
compiler-explorer/test/cases/arm-moose-example.cpp
T
Nicole Mazzuca 9ddf22f090 Support Visual C++ and Windows well
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
2018-07-28 15:18:43 -07:00

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;
}
}