Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void visit(FunctionCallExpression e) {
- // TODO Auto-generated method stub
- int count = 4;
- for(Expression x: e.getArguments()){
- x.accept(this);
- buf.append(generateInstruction("movl", "eax", count+"(ebp)"));
- }
- //move all stuff into stack
- buf.append(generateInstruction("call", "_" + e.getName()));
- buf.append(NEWLINE);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement