Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public void visit(FunctionCallExpression e) {
  2. // TODO Auto-generated method stub
  3.  
  4. int count = 4;
  5. for(Expression x: e.getArguments()){
  6. x.accept(this);
  7. buf.append(generateInstruction("movl", "eax", count+"(ebp)"));
  8. }
  9. //move all stuff into stack
  10.  
  11. buf.append(generateInstruction("call", "_" + e.getName()));
  12. buf.append(NEWLINE);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement