Author Topic: Warning About Ports  (Read 5307 times)

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Warning About Ports
« on: February 18, 2006, 09:26:59 am »
I don't know how many of you have actually built some of the stuff from ports like scummvm and SDL but I thought I should just mention something.

When you build Zaurus binaries from ports don't assume that they are being xscale optimised. They (I'm pretty sure about this) all being built as default arm binaries which makes them pretty slow, particularly if you have built things like ScummVM and libSDL.

You can 'hint' to the build system that you want xscale binaries by doing the following before you make a port.

export CFLAGS="-mcpu=xscale"
export CPPFLAGS="-mcpu=xscale"

in the case of libSDL this makes a significant difference in performance speed.

Ideally once you have started the make on the port and it has passed the configure stage you should be checking that the -mcpu=xscale flag is being included in pretty much all the compile statements that fly by.

Well worth a rebuild of a few things if you didn't do this

take note, if you just redo the make install it may look like the library has been replaced. it almost certainly won't have. you will probably have to do...

pkg_add -r -F installed tarball.tgz

Don't believe it until you see it being removed and re-added.

- Andy
« Last Edit: February 18, 2006, 09:55:02 am by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Warning About Ports
« Reply #1 on: February 18, 2006, 02:25:10 pm »
Note the xscale binaries/libraries seem to be somewhat bigger than the standard ARM versions so I suggest you decide on performance critical things to build with these flags.

- Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Warning About Ports
« Reply #2 on: July 29, 2006, 05:19:36 pm »
Sweet! Thanks for the great info.

Quote
Note the xscale binaries/libraries seem to be somewhat bigger than the standard ARM versions so I suggest you decide on performance critical things to build with these flags.

- Andy
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115253\"][{POST_SNAPBACK}][/a][/div]

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Warning About Ports
« Reply #3 on: October 19, 2006, 08:02:56 am »
Quote
Note the xscale binaries/libraries seem to be somewhat bigger than the standard ARM versions so I suggest you decide on performance critical things to build with these flags.

- Andy
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

are you talking about ports in [a href=\"ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/arm/]ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/arm/[/url] ?

do you mean that we should rebuild them with the xscale options ???
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Warning About Ports
« Reply #4 on: October 19, 2006, 03:45:41 pm »
Quote
Quote
Note the xscale binaries/libraries seem to be somewhat bigger than the standard ARM versions so I suggest you decide on performance critical things to build with these flags.

- Andy
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

are you talking about ports in [a href=\"ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/arm/]ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/arm/[/url] ?

do you mean that we should rebuild them with the xscale options ???
[div align=\"right\"][a href=\"index.php?act=findpost&pid=144344\"][{POST_SNAPBACK}][/a][/div]

Umm, see top of thread
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card