Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Leveraging Vector Pascal for a PS2 port???

  1. #1

    Leveraging Vector Pascal for a PS2 port???

    Hi Guys,
    I can't remember if I pointed out that the guys over @ Glasgow Uni created an open Source compiler called Vector Pascal. Would it be possible leverage some of the work they have done to add a Vector back-end to FreePascal, because they ported VP to the PS2.

    There is a 100+ page document about how they ported VP over to the PS2 and you can read it here....
    http://www.dcs.gla.ac.uk/~wpc/report...rindex/PS2.pdf

    I hope someone from the FreePascal team reads this.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  2. #2

    Leveraging Vector Pascal for a PS2 port???

    This sounds doable. The compiler already contains code to do vector operations using MMX, i.e. the code to multiply arrays is there. This can be reused for such a port.

    The PS2 uses a MIPS processor, but the compiler has no MIPS code generator yet. It should be straightforward to implement one. The MIPS is a very regular processor so should generally be easy, the only obstacle might be the lack of flags.

    Basically all that is needed is someone with plenty of spare time

  3. #3
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Leveraging Vector Pascal for a PS2 port???

    Do you think that Florian would be willing to push MIPS forward on the Development Roadmap at this point? It's been on the development tree for ages and there is still that request to add ARM7/9 THUMB instructions aswell.

    But then again, if the FPC team had a game dev advocate in it's ranks [size=9px](*ahem* Mr. Mantione *ahem*)[/size] they would be quite influential.

    The two major benifits of course would be, first; attracting new game dev'ers into the Pascal 'fold', and second; cultivating new avenues of interest with this and similar communities already in existance.

    But would Pascal coders using Vector Pascal together with FPC be able to get the same or 'close to' results as what we seem from professional quality games?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #4

    Leveraging Vector Pascal for a PS2 port???

    i have a older mips windows ce 2.0 handheld that i wanted to reprogramm, i talked to #fpc guys about mips support and they said they have no mips hardware..
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  5. #5

    Leveraging Vector Pascal for a PS2 port???

    Well, Florian has said in the past he has no interrest to work on MIPS support. Of course, if anyone is actively working on something, the team will support such an effort, which is one reason why Florian is interrested in Thumb support. The fact that it hasn't happened until now is mainly that Florian has tons of things to do on the compiler. I'd say it is a matter of communicating that you are really waiting for it.

    For the PS2/MIPS, someone has to start the project, and the team will be happy to do some work to support such an effort.

  6. #6
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Leveraging Vector Pascal for a PS2 port???

    The same scenario with GBA targeting support about a year ago...

    This is a bit different as it's an entire CPU architecture, but like the GBA stuff if someone wants to gain support for platforms such as PSOne, PS2 and so on, there will have to be an individual or a team created for such an endevour.


    Though... it might be a more productive task to find out and write up how one can add things to the compiler rather than to simply just stick to adding the one thing.

    I mean once there is a set of documentation that tells exactly how one would go about adding to FPC, then it might make it far less difficult for new individuals that want to add some other thing(s) to it. So instead of seeing on PGD once a year, a new platform that someone wants to have support for yet noone has any time for it, you instead have a place where you can direct them to get the nessissary information to learn how to do it. That is provided that they are dedicated enough to commit to such a task.

    This might even further promote more and more the trend of FPC as major option for multi-platform compilers.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  7. #7

    Leveraging Vector Pascal for a PS2 port???

    Quote Originally Posted by WILL
    The same scenario with GBA targeting support about a year ago...

    This is a bit different as it's an entire CPU architecture, but like the GBA stuff if someone wants to gain support for platforms such as PSOne, PS2 and so on, there will have to be an individual or a team created for such an endevour.
    WILL, you always are been superoptimist
    With the gba we had to adapt a complete compiler and rtl by cutting down here and there. With mips we have only a partial support... too much work to do...
    Coming from the gba experience, I can tell that it is very hard (read impossible) to find someone's help. It's even hard to get some feedback or bug reporting. If we had some help with gba, we would have ended the porting six months ago. Sad, but it's the truth :?

    Quote Originally Posted by WILL
    Though... it might be a more productive task to find out and write up how one can add things to the compiler rather than to simply just stick to adding the one thing.

    I mean once there is a set of documentation that tells exactly how one would go about adding to FPC, then it might make it far less difficult for new individuals that want to add some other thing(s) to it. So instead of seeing on PGD once a year, a new platform that someone wants to have support for yet noone has any time for it, you instead have a place where you can direct them to get the nessissary information to learn how to do it. That is provided that they are dedicated enough to commit to such a task.

    This might even further promote more and more the trend of FPC as major option for multi-platform compilers.
    Definitely I agree! :thumbup: :clap:
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  8. #8
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Leveraging Vector Pascal for a PS2 port???

    dmantione: Do you know enough about the innerworkings of FPC to be able to start such a set of docs that detail how one would go about adding a CPU architecture from scratch?

    There is of course lots of present and future use for such a series of articles; MIPS [size=9px](is the big one)[/size], PIC [size=9px](the microcontrollers)[/size], Z80, ARM9, Dual Core/Hyperthreaded Pentiums, VIA's C7 [size=9px](which is starting to gain popularity in it's own rights)[/size], Sony/Intel/HP next gen processors in the future?, etc and so on...

    So if it really came down to getting any other of the FPC team interested enough to find relivence in helping you, there is plenty of it. Especially if they wish the compiler to carry on after they have done all they can or care to do to it.


    As far as the GBA support goes, it took roughly a year to get support into the compiler. I think it would take less time if lessons learned from the GBA port where taken to this new port.

    However, the guts of FPC are far from well documented. So this provides a challenge to those newcomers. Maybe some work in this area might kill many birds with a single stone?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  9. #9

    Leveraging Vector Pascal for a PS2 port???

    Yes, I do have a deep understanding of the code generator.

    First read this:

    ftp://ftp.freepascal.org/pub/fpc/docs-pdf/comparch.pdf

    It is outdated, but still a good read. If someone wants to start a MIPS port, contact me and I'll help you step by step.

    A estimate a MIPS port will be between 150 and 200kb of code, assuming an external assembler and linker is available.

  10. #10

    Leveraging Vector Pascal for a PS2 port???

    [quote="dmantione"]Yes, I do have a deep understanding of the code generator.

    First read this:

    ftp://ftp.freepascal.org/pub/fpc/docs-pdf/comparch.pdf

    It is outdated, but still a good read. If someone wants to start a MIPS port, contact me and I'll help you step by step.

    A estimate a MIPS port will be between 150 and 200kb of code, assuming an external assembler and ]

    Whooops! 200kb of code!!!
    And what about arm9? Maybe could it be only matter of extending arm7?
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •