new arch: problems with arguments passing, args not put on stack
Gabor Kerenyi
kerenyi@qwertynet.hu
Tue Jul 27 19:04:00 GMT 2010
Hi All,
I'm trying to write a new port for backend. Up to now I could figure out this
and that but now I've no clue. This is backend is only a warm up for another
project. The produced code will run inside a VM now.
I have problem with function calls, more precisely argument passing. I would
like to pass all arguments on the stack. I defined the PUSH_ARGS and the
PUSH_ROUNDING. I have also a pushsi1 insn which takes all kind of arguments.
(the general design that all instructions and all arguments can be immediate,
memory, etc...
But gcc does not generate any pushes...
I set up a FUNCTION_ARG also which returns 0 for all arguments.
I see that it is called. I have no idea why the arguments are not pushed or
put on stack.
What kind of insns do I need to get it working?
Thanks,
Gabor
More information about the Gcc-help
mailing list