Re: Backend for PicoBlaze

2006-08-25 Thread Ian Lance Taylor
Rask Ingemann Lambertsen <[EMAIL PROTECTED]> writes: > 4. Stack and argument passing. > >PicoBlaze has an internal call/return stack which can't be used for > passing arguments. How will the STACK_POINTER_REGNUM macro and the > "push" instruction pattern be specified? For STACK_POINTER_REGNU

Re: Backend for PicoBlaze

2006-08-25 Thread Armin Vogl
I suggest that before you do anything else, you figure out how to pass arguments to functions and figure out an instruction sequence which performs signed comparison. Thaks for your comments. I start to think it is actally more complicated that I had first thought. I must admit that I curre

Re: Backend for PicoBlaze

2006-08-25 Thread Mike Stump
On Aug 25, 2006, at 2:59 PM, Rask Ingemann Lambertsen wrote: `indirect_jump' An instruction to jump to an address which is operand zero. This pattern name is mandatory on all machines. I don't see how it can be supported. But most programs don't need it. Well, the usu

Re: Backend for PicoBlaze

2006-08-25 Thread Rask Ingemann Lambertsen
On Fri, Aug 25, 2006 at 06:06:47PM +0200, Armin Vogl wrote: > Hello, > > I would like to ask if it would be possible to write a gcc backend for the > Xilinx PicoBlaze soft processor. I'll make a few comments about it. 1. 8-bit wide registers (and ALU). GCC can generate disappointingly poo

Re: Backend for PicoBlaze

2006-08-25 Thread Armin Vogl
Thanks for answering. I already feared that it wouldn't be trivial after reading through the documentation ... I think a PicoBlaze backend would be very intersting for the soft processor community. Armin There is no place to request a backend port, other than the e-mail you sent. Most such req

Re: Backend for PicoBlaze

2006-08-25 Thread Ian Lance Taylor
"Armin Vogl" <[EMAIL PROTECTED]> writes: > I would like to ask if it would be possible to write a gcc backend for the > Xilinx PicoBlaze soft processor. Porting gcc to an 8-bit microcontroller is not completely impossible, but it is not easy. gcc was written to generate code for 32-bit processor

Backend for PicoBlaze

2006-08-25 Thread Armin Vogl
Hello, I would like to ask if it would be possible to write a gcc backend for the Xilinx PicoBlaze soft processor. If you never heard about it, please look here: http://www.xilinx.com/ipcenter/processor_central/picoblaze/picoblaze_user_resources.htm As I have never programmed anything like a c