Browse Source

Add old demo files

master
Théophile Bastian 3 years ago
parent
commit
fe242b9ac6
  1. BIN
      demo.old/demo.bin
  2. BIN
      demo.old/demo.bin.synth
  3. 14
      demo.old/demo.c
  4. 12
      demo.old/synth.sh

BIN
demo.old/demo.bin

Binary file not shown.

BIN
demo.old/demo.bin.synth

Binary file not shown.

14
demo.old/demo.c

@ -0,0 +1,14 @@ @@ -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

@ -0,0 +1,12 @@ @@ -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…
Cancel
Save