Re: [fpc-devel] Porting FPC to a new architecture

2009-11-19 Thread Florian Klaempfl
Felipe Monteiro de Carvalho schrieb: > On Thu, Nov 19, 2009 at 8:36 AM, Michael Schnell wrote: >> This is great news for me, as I am considering a NIOS2 Port and NIOS2 is >> very similar to MIPS32 so we might be able to work together on this and >> the resulting thingy would support both architect

Re: [fpc-devel] Porting FPC to a new architecture

2009-11-19 Thread Michael Schnell
> R01 used by Assembler for optimization (don't use) > R02 Function Return Value (least significant 32 Bits) (Not used by > Compiler) Sorry, Typo: Of course R01 is the one that is not used by the compiler. -Michael ___ fpc-devel maillist -

Re: [fpc-devel] Porting FPC to a new architecture

2009-11-19 Thread Michael Schnell
Felipe Monteiro de Carvalho wrote: > > What operating system will you be targetting? Linux > > I think that telling FPC which ASM instructions to use should be quite > easy, the main problem should be getting a grip in the binutils, how > to link libraries and all other stuff that comes with it

Re: [fpc-devel] Porting FPC to a new architecture

2009-11-19 Thread Michael Schnell
Felipe Monteiro de Carvalho wrote: > > http://sourceforge.net/projects/fpc-mips/develop AFAIK, this only contains some initial steps that someone tool ages ago and did not proceed. > > Maybe this work could be ported to the latest trunk. I have no hope regarding this and suppose to do code for

Re: [fpc-devel] Porting FPC to a new architecture

2009-11-19 Thread Felipe Monteiro de Carvalho
On Thu, Nov 19, 2009 at 8:36 AM, Michael Schnell wrote: > This is great news for me, as I am considering a NIOS2 Port and NIOS2 is > very similar to MIPS32 so we might be able to work together on this and > the resulting thingy would support both architectures. What operating system will you be t

Re: [fpc-devel] Porting FPC to a new architecture

2009-11-19 Thread Felipe Monteiro de Carvalho
On Thu, Nov 19, 2009 at 8:36 AM, Michael Schnell wrote: > This is great news for me, as I am considering a NIOS2 Port and NIOS2 is > very similar to MIPS32 so we might be able to work together on this and > the resulting thingy would support both architectures. I already have 2 news about this.

Re: [fpc-devel] Porting FPC to a new architecture

2009-11-19 Thread Michael Schnell
Here another quote from the said thread: --- Florian Klaempfl wrote: Another backend for FPC is 4k-5k lines (pascal, no need to learn C), just make it a bounty for say 2000 Eur and I'am sure, somebody will write you a backend for the desired processor.

Re: [fpc-devel] Porting FPC to a new architecture

2009-11-19 Thread Jonas Maebe
On 18 Nov 2009, at 11:40, Felipe Monteiro de Carvalho wrote: How would one proceed to port Free Pascal to a new architecture? Any initial steps? Start from an initial backend that is most similar to your cpu. E.g., probably ARM or SPARC in your case. Then modify the code. I haven't found

Re: [fpc-devel] Porting FPC to a new architecture

2009-11-19 Thread Michael Schnell
Felipe Monteiro de Carvalho wrote: > How would one proceed to port Free Pascal to a new architecture? Any > initial steps? I haven't found anything about this. Please take a look at the backlog of this mailing list. It has been discussed just recently in the "LLVM Backend?" thread and also was dis

[fpc-devel] Porting FPC to a new architecture

2009-11-18 Thread Felipe Monteiro de Carvalho
Hello, How would one proceed to port Free Pascal to a new architecture? Any initial steps? I haven't found anything about this. I am considering a MIPS port (to target linux-mips). But don't count on it, not sure at the moment if it will be successfull. thanks, -- Felipe Monteiro de Carvalho __