new arch: problems with arguments passing, args not put on stack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux