mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
94276b6f93
stepping, next'ing, finish'ing, stacktraces, source listings, etc. You can't print program variables yet though. Oh, and I lost my nice commented version of funccall.ll :( Test with: llvm-as funccall.ll llvm-db funccall.bc <arguments> This is not automatically testable yet, and the C front-end doesn't support debug information yet. That said, it's a start. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10689 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
110 B
C
15 lines
110 B
C
|
|
static int q;
|
|
|
|
void foo() {
|
|
int t = q;
|
|
q = t + 1;
|
|
}
|
|
int main() {
|
|
q = 0;
|
|
foo();
|
|
q = q - 1;
|
|
|
|
return q;
|
|
}
|