Align ARM stack pointer to an 8-byte boundary when calling functions.
This is required by the ARM EABI standard.
diff --git a/libacc/tests/main.cpp b/libacc/tests/main.cpp
index 4f8a65d..13a30d4 100644
--- a/libacc/tests/main.cpp
+++ b/libacc/tests/main.cpp
@@ -29,6 +29,11 @@
return mainFunc(argc, argv);
}
+// Private API for development:
+
+extern "C"
+void accDisassemble(ACCscript* script);
+
int main(int argc, char** argv) {
const char* inFile = NULL;
bool printListing;
@@ -109,6 +114,10 @@
}
}
+ if (printListing) {
+ accDisassemble(script);
+ }
+
if (runResults) {
accGetScriptLabel(script, "main", (ACCvoid**) & mainPointer);