forked from m2-internship/talk-2018-11-uppsala
Add old demo files
This commit is contained in:
parent
bb80c3be9a
commit
fe242b9ac6
Binary file not shown.
Binary file not shown.
|
@ -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();
|
||||||
|
}
|
|
@ -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 New Issue