mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-12-02 10:54:04 +03:00
1fa9b86b26
This is more descriptive, especially since we will eventually have macaw-aarch32 (also derived from the ASL specs)
21 lines
292 B
C
21 lines
292 B
C
#include "util.h"
|
|
|
|
void thumbFunc(int x, int*res) __attribute__((target("thumb")));
|
|
void thumbFunc(int x, int* res) {
|
|
if(x > 0) {
|
|
x = x + 10;
|
|
}
|
|
|
|
*res = x;
|
|
}
|
|
|
|
void driver(int x, int* res) {
|
|
thumbFunc(x + 1, res);
|
|
}
|
|
|
|
void _start() {
|
|
int i;
|
|
driver((int)&driver, &i);
|
|
EXIT();
|
|
}
|