11.07.2015 Views

Building an LLVM backend

Building an LLVM backend

Building an LLVM backend

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Calling convention for LEG●How values are passed to/from a function● Arguments in r0 (1 st ), r1 (2 nd ), …, r3 (4 th )●– Further arguments passed on the stackReturn value in r0int foo(int a, int b) {int result = a + b;return result;}// r0 + r1// r0ex1.c.foo:add r0, r0, r1b lrex1.s7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!