Author Topic: ARM specific compiler optimization options  (Read 4748 times)

Wood

  • Newbie
  • *
  • Posts: 10
    • View Profile
ARM specific compiler optimization options
« on: January 07, 2004, 10:35:31 am »
I have just compiled an Atari ST emulator called Hatari on a Zaurus SL-C760. I have already been able to run several Atari ST games (e.g. Xenon II, Speedball, Wings of Death, Super Wonderboy and IK+) and some applications.

At the moment I am trying to solve a problem with the Atari mouse, and to increase the performance. Most games can not be played with sound or full screen because the performance of the Zaurus is not sufficient. That\'s why I\'d like to have a look at the ARM options of the gcc compiler:

ARM Options -mapcs-frame -mno-apcs-frame -mapcs-26 -mapcs-32 -mapcs-stack-check -mno-apcs-stack-check -mapcs-float -mno-apcs-float -mapcs-reentrant -mno-apcs-reentrant -msched-prolog -mno-sched-prolog -mlittle-endian -mbig-endian -mwords-little-endian -malignment-traps -mno-alignment-traps -msoft-float -mhard-float -mfpe -mthumb-interwork -mno-thumb-interwork -mcpu=name -march=name -mfpe=name -mstructure-size-boundary=n -mabort-on-noreturn -mlong-calls -mno-long-calls -msingle-pic-base -mno-single-pic-base -mpic-register=reg -mnop-fun-dllimport -mpoke-function-name -mthumb -marm -mtpcs-frame -mtpcs-leaf-frame -mcaller-super-interworking -mcallee-super-interworking

Does anyone has any experience with using these options on a SL-C7x0? What option may boost the performance of an emulator a little bit?
_________________
Sharp SL-C760 zUbuntu 1.0 RC1

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
ARM specific compiler optimization options
« Reply #1 on: January 07, 2004, 11:04:39 am »
I\'d guess that -mhard-float plus the associated hardware would make a bit of a difference ;-)

Which version of GCC are you using? Can you specify that you want ARM5 code & optimisations?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
ARM specific compiler optimization options
« Reply #2 on: January 07, 2004, 11:31:08 am »
are there any disk images that come loaded with ST games? etc...

I\'ve been talking recently to Howard Chu (MiNT) ... and that brought back
memories.

It would be nice to find an image of 100mb of atari st stuff.

Scott
ps: I first had minix on my ST :-> but the original minix
was stolen last year. :-<

Anonymous

  • Guest
ARM specific compiler optimization options
« Reply #3 on: January 07, 2004, 11:52:40 am »
Quote
Which version of GCC are you using?
gcc 3.3.1

Quote
Can you specify that you want ARM5 code & optimisations?
Yes, I believe the Intel PXA255 processor in the SL-C760 is ARM 5 compliant. .

Wood

  • Newbie
  • *
  • Posts: 10
    • View Profile
ARM specific compiler optimization options
« Reply #4 on: January 07, 2004, 12:07:34 pm »
Quote
are there any disk images that come loaded with ST games? etc...

Have a look on www.atari.st or www.atari.org. On the first web site you can download Pompey Pirates disk images with lots of games, the second web site contains links to other Atari related web sites.
_________________
Sharp SL-C760 zUbuntu 1.0 RC1

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
ARM specific compiler optimization options
« Reply #5 on: January 07, 2004, 04:24:09 pm »
Quote
Yes, I believe the Intel PXA255 processor in the SL-C760 is ARM 5 compliant.

Yes indeed, but what kind of code does gcc 3.3.1 generate by default, ARM4 probably. I\'m not quite sure how, but I\'d have thought it might be possible to force it to generate ARM5 only code, hopefully with optimisations, etc.

Thaough I could be wrong.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
ARM specific compiler optimization options
« Reply #6 on: January 08, 2004, 04:39:10 pm »
Quote
Quote
are there any disk images that come loaded with ST games? etc...

Have a look on www.atari.st or www.atari.org. On the first web site you can download Pompey Pirates disk images with lots of games, the second web site contains links to other Atari related web sites.

hahah! I love it ... www.atari.st (amiga is the trash) ... nice layout.


Thanks!

Scott