Page 3 of 8 FirstFirst 12345 ... LastLast
Results 21 to 30 of 77

Thread: GBA + FPC = Possiblility???

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

    GBA + FPC = Possiblility???

    I thought Free Pascal did this already...?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  2. #22

    GBA + FPC = Possiblility???

    Uhm... I don't think so. FPC crosscompiler currently does not compile code for gba. There is a version that can crosscompile from i386-linux to arm-linux, not to arm-elf.
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

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

    GBA + FPC = Possiblility???

    Quote Originally Posted by Legolas
    Anyway I downloaded some documentation and sources... I think I'll try to make it, waiting for a freepascal crosscompiler. :rambo:
    My response to this was that it already cross-compiles. At the least it is what I had meant.

    As for the GBA port of FPC, why not contact Noeska and FPK(easier to reach on IRC at #fpc, check the FPC website for the server) and see what may help? Noeska is good for it and FPK is willing under the right conditions...

    I think what FPK is getting at is not only does he want to see it actually being used, unlike his other BeOS and Solaris ports, but that someone will actually be required to maintain it and handle bug reports and the like aswell.

    However I think that we have already established that there is a want and some will use it. I certanly will if it's available to me. But is a handfull of people enough? Maybe, maybe not... I'll definately be looking into this further.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #24

    GBA + FPC = Possiblility???

    Because of my little knowledge, I could only do some beta testing. ops:
    Maybe I can try to port some GBA C code (like libraries and so on) to Pascal.
    If Noeska and FPC want a beta-tester, I'm here
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

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

    GBA + FPC = Possiblility???

    Was there any further progress with this? Did FPK ever add it to the 'to do' list?

    I'll see if I can search out some more information on this later on...
    Jason McMillen
    Pascal Game Development
    Co-Founder





  6. #26

    GBA + FPC = Possiblility???

    I don't know about freepascal, but with a bit of headache and a lot of attempts I built a gpc cross compiler from cygwin to arm-elf that (theorically) could compile gba code
    At this time I'm trying to convert some simple code from c to pascal to do some testing... Stay tuned!
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  7. #27

    GBA + FPC = Possiblility???

    I think most of us are all ears!!!! Or should that be eyes?
    <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 =-

  8. #28
    Anonymous
    Guest

    GBA + FPC = Possiblility???

    [quote="noeska"]I think al that is needed on how to modify free pascal for the gba is written here: http://linux.gbadev.org/gcc-gba/ .

    The important part is crt0.s as this defines the gba (cartridge/executable) header. But even more improtant is the lnkscript that is used. As that glues together the crt0.o with your applicton .o file in a special way. Without that ]

    im pretty sure the gba supports both thumb and arm instruction sets

    iirc due to bus issues thumb is faster when running from cart but arm is faster when running from ram.

  9. #29

    GBA + FPC = Possiblility???

    I can confirm that the gba cpu (arm7tdmi) can handle arm and thumb instructions set. AFAIK gcc for arm can switch between arm and thumb also, by compiling with -mthumb-interwork directive.
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  10. #30
    Anonymous
    Guest

    GBA + FPC = Possiblility???

    Quote Originally Posted by Legolas
    Uhm... I don't think so. FPC crosscompiler currently does not compile code for gba. There is a version that can crosscompile from i386-linux to arm-linux, not to arm-elf.
    If I understood FPK ok, there is one main problem compiler side:

    - FPC supports ARM, but only normal 32-bit ARM assembler. ARM also has a shortened 16-bit THUMB chipset. (not every ARM chip has this, it is an added option). FPC doesn't support THUMB instruction generation yet.

    Besides that, the typical other tasks that must be done for a new port:
    - somehow create startup code (the already mentioned crt0.[o|as])
    - Create something that can interface with the OS.
    - Interface to other compiler's libraries (typical GCC) to get access to code.
    - Do stuff that is special for that port. (e.g. for Windows: DLL support)

Page 3 of 8 FirstFirst 12345 ... 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
  •