Re: [fpc-devel] about freepascal for mips

2012-05-30 Thread Michael Schnell
On 05/29/2012 01:20 PM, Fuxin Zhang wrote: > By the way, I find that qemu is really very handy for test. Great ! In fact I might be going to o projects with PIC32 some day soon. I'd be happy to use FPC for that. -Michael ___ fpc-devel maillist - fpc-

Re: [fpc-devel] about freepascal for mips

2012-05-29 Thread Fuxin Zhang
Dear Florian, >> >> And the whole code seems totally incompatible with standard mips >> abi, >> it use 6 registers to pass parameters, while o32 has 4. > > cpupara needs a major overhaul. This is one of the next things I planned > to do. Do you have any detailed estimated time plan for this? a

Re: [fpc-devel] about freepascal for mips

2012-05-29 Thread Fuxin Zhang
> On 05/25/2012 11:27 AM, microc...@zoho.com wrote: >> EXCELLENT! > +1 ! > >> Now all we need to know is where to get a good price on your MIPS >> boxes so we can all run them ;-) > > Ok They don't have an MMU and don't do Linux, but the PIC32 processors > from Microcip have a MIPS CPU and are very

Re: [fpc-devel] about freepascal for mips

2012-05-29 Thread Michael Schnell
On 05/25/2012 11:27 AM, microc...@zoho.com wrote: EXCELLENT! +1 ! Now all we need to know is where to get a good price on your MIPS boxes so we can all run them ;-) Ok They don't have an MMU and don't do Linux, but the PIC32 processors from Microcip have a MIPS CPU and are very cheap (up fr

Re: [fpc-devel] about freepascal for mips

2012-05-28 Thread Florian Klaempfl
> > And the whole code seems totally incompatible with standard mips abi, > it use 6 registers to pass parameters, while o32 has 4. cpupara needs a major overhaul. This is one of the next things I planned to do. ___ fpc-devel maillist - fpc-devel

Re: [fpc-devel] about freepascal for mips

2012-05-28 Thread Fuxin Zhang
>> >> I managed to remove the errors with the following patch, such that >> everything compiled, but I haven't been able to test it: >> http://j-software.dk/fpc-mipsel.patch >All fixes of the patch are committed, I solved some things differently though. I am struggling with cpupara.pas. The use o

Re: [fpc-devel] about freepascal for mips

2012-05-28 Thread Florian Klaempfl
Am 25.05.2012 21:04, schrieb Jeppe Græsdal Johansen: I managed to remove the errors with the following patch, such that everything compiled, but I haven't been able to test it: http://j-software.dk/fpc-mipsel.patch All fixes of the patch are committed, I solved some things differently though.

Re: [fpc-devel] about freepascal for mips

2012-05-28 Thread Sven Barth
On 27.05.2012 21:34, Jonas Maebe wrote: The QUICKTEST=1 means that tests that depend on units under fpc/packages won't be checked (there's not that many of them anyway). I need to keep that option in mind when I'll try to run the tests for NativeNT :D Regards, Sven _

Re: [fpc-devel] about freepascal for mips

2012-05-27 Thread microcode
Thank you. -Original Message- From: "Fuxin Zhang" Sender: fpc-devel-boun...@lists.freepascal.org Date: Mon, 28 May 2012 07:49:43 To: FPC developers' list Reply-To: zhan...@lemote.com, FPC developers' list Subject: Re: [fpc-devel] about freepascal for mi

Re: [fpc-devel] about freepascal for mips

2012-05-27 Thread Fuxin Zhang
> Hi, I was more interested in the single box version. I forget what you > call > it. I will email Betty, thanks for the connection. I'm looking for a MIPS > box for my own study. It is called Fuloong, and I find I made a mistake, betty's mail is zha...@lemote.com, not be...@lemote.com. >> >> You c

Re: [fpc-devel] about freepascal for mips

2012-05-27 Thread Jonas Maebe
On 27 May 2012, at 21:34, Jonas Maebe wrote: > make TEST_FPC=/full/path/to/ppcrossmipsel TEST_SSH=login@mips-box > TEST_REMOTEPATH=/tmp/tests OPT="-O2 -ap" TEST_OPT="-O2 -ap" QUICKTEST=1 clean > all digest > > Add any additional parameters you need for cross-compilation (-FD, -XR, ...) > to T

Re: [fpc-devel] about freepascal for mips

2012-05-27 Thread Jonas Maebe
On 25 May 2012, at 15:48, Fuxin Zhang wrote: > Now at least we have a very good start. I've a quick look over current > mips code, it seems not strong enough. For example, the inverse_cond seems > wrong, the setting of first_int_imreg/mavarregs/maxfpuvarregs etc. is hard > to understand... first

Re: [fpc-devel] about freepascal for mips

2012-05-27 Thread microcode
On Sat, 26 May 2012 21:00:23 +0800 (CST) zhan...@lemote.com wrote: > microcode wrote > > Hello and may I say > > > > EXCELLENT! > > > > Now all we need to know is where to get a good price on your MIPS boxes > > so we can all run them ;-) > > > Well, we decide to sell some machines at very low pr

Re: [fpc-devel] about freepascal for mips

2012-05-26 Thread Fuxin Zhang
> Jeppe Gr�sdal Johansen wrote: > >> Does anyone know if there's an easy way to set up an emulator for >> testing? Been fighting with qemu for the last half hour without results. > > http://wiki.lazarus.freepascal.org/Qemu_and_other_emulators When I tried to follow the instructions in given link, I

Re: [fpc-devel] about freepascal for mips

2012-05-26 Thread Fuxin Zhang
> "Fuxin Zhang" wrote: > >> Hello everybody, >> >> I am Fuxin Zhang from lemote, now we are working on mips support of fpc > > Hello and may I say > > EXCELLENT! > > Now all we need to know is where to get a good price on your MIPS boxes so > we can all run them ;-) > Well, we decide to sell some

Re: [fpc-devel] about freepascal for mips

2012-05-26 Thread microcode
"Fuxin Zhang" wrote: > Hello everybody, > > I am Fuxin Zhang from lemote, now we are working on mips support of fpc Hello and may I say EXCELLENT! Now all we need to know is where to get a good price on your MIPS boxes so we can all run them ;-) _

Re: [fpc-devel] about freepascal for mips

2012-05-25 Thread Fuxin Zhang
>> Jonas > I wonder how you people managed to build anything at all. > > When I tried to build from SVN trunk there would be an endless steam of > internalerrors related to fpu registers, no matter if compiled with MIPS > FPU or softfloat. Which mips toolchain are you using? Here I don't meet any s

Re: [fpc-devel] about freepascal for mips

2012-05-25 Thread Florian Klämpfl
Am 25.05.2012 21:04, schrieb Jeppe Græsdal Johansen: > Den 25-05-2012 13:54, Jonas Maebe skrev: >> >> Fuxin Zhang wrote on Fri, 25 May 2012: >> >>> And my progress and problems: >>> I've got the source from subversion and tried to build it in ubuntu >>> 11.10 x86-64 machine. With the following pa

Re: [fpc-devel] about freepascal for mips

2012-05-25 Thread Nikolai Zhubr
Hi, 25.05.2012 23:04, Jeppe Græsdal Johansen: [...] When I tried to build from SVN trunk there would be an endless steam of internalerrors related to fpu registers, no matter if compiled with MIPS FPU or softfloat. I managed to remove the errors with the following patch, such that everything com

Re: [fpc-devel] about freepascal for mips

2012-05-25 Thread Mark Morgan Lloyd
Jeppe Græsdal Johansen wrote: Does anyone know if there's an easy way to set up an emulator for testing? Been fighting with qemu for the last half hour without results. http://wiki.lazarus.freepascal.org/Qemu_and_other_emulators An important point is that in most cases, whoever "rolls" a dist

Re: [fpc-devel] about freepascal for mips

2012-05-25 Thread Jeppe Græsdal Johansen
Den 25-05-2012 13:54, Jonas Maebe skrev: Fuxin Zhang wrote on Fri, 25 May 2012: And my progress and problems: I've got the source from subversion and tried to build it in ubuntu 11.10 x86-64 machine. With the following patch and commands, I can get a partly working ppcrossmipsel(it can at le

Re: [fpc-devel] about freepascal for mips

2012-05-25 Thread Fuxin Zhang
> There is mips instruction call 'B', only branches like bne/beq. Sorry I meant to say "There is no mips instruction call 'B'":( >> >> Yes, PIC requires cpu-specific support. It shouldn't be necessary to >> get an initial port up and running though. >> >> >> Jonas >> > > >

Re: [fpc-devel] about freepascal for mips

2012-05-25 Thread Fuxin Zhang
> [snip] >> This is to fix various file not found errors. I am not sure whether it >> is >> 'right' fix. > > No, definitely it's definitely not right. It's strange that you need > those changes, since the Linux RTL Makefile is used daily. Did you > need those changes even to compile it for i386? >

Re: [fpc-devel] about freepascal for mips

2012-05-25 Thread Mark Morgan Lloyd
Fuxin Zhang wrote: Hello everybody, I am Fuxin Zhang from lemote, now we are working on mips support of fpc. Hope you guys can help us to accelerate the process, a lots of users are waiting for this(see at the end of copied mail between me and Florian if interested). Lemote can donate develo

Re: [fpc-devel] about freepascal for mips

2012-05-25 Thread Jonas Maebe
Fuxin Zhang wrote on Fri, 25 May 2012: And my progress and problems: I've got the source from subversion and tried to build it in ubuntu 11.10 x86-64 machine. With the following patch and commands, I can get a partly working ppcrossmipsel(it can at least build a helloworld and runnable): patc