Add old demo files
This commit is contained in:
parent
bb80c3be9a
commit
fe242b9ac6
4 changed files with 26 additions and 0 deletions
BIN
demo.old/demo.bin
Executable file
BIN
demo.old/demo.bin
Executable file
Binary file not shown.
BIN
demo.old/demo.bin.synth
Executable file
BIN
demo.old/demo.bin.synth
Executable file
Binary file not shown.
14
demo.old/demo.c
Normal file
14
demo.old/demo.c
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int bar(int x) {
|
||||||
|
printf("'I’m %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
12
demo.old/synth.sh
Executable 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"
|
Loading…
Reference in a new issue