Add old demo files

This commit is contained in:
Théophile Bastian 2019-10-15 13:07:26 +02:00
parent bb80c3be9a
commit fe242b9ac6
4 changed files with 26 additions and 0 deletions

BIN
demo.old/demo.bin Executable file

Binary file not shown.

BIN
demo.old/demo.bin.synth Executable file

Binary file not shown.

14
demo.old/demo.c Normal file
View file

@ -0,0 +1,14 @@
#include <stdio.h>
int bar(int x) {
printf("'Im %d; how many? %n\n", x, &x);
return x;
}
int foo() {
return bar(3);
}
int main() {
return foo();
}

12
demo.old/synth.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
SYNTHESIS_SCRIPT="../../../src/dwarf-synthesis/synthesize_dwarf.sh"
if [ "$#" -lt 1 ] ; then
>&2 echo -e "Missing argument: object file.\nUsage: $0 object.o"
exit 1
fi
objfile="$1"
$SYNTHESIS_SCRIPT "$objfile" "$objfile.synth"