Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
arm-agb-elf arm-thumb-elf arm-elf (O.O)   Message List  
Reply | Forward Message #13808 of 15019 |
gcc optimizations


I has been very quiet on this reflector is anyone still out there?

Has anyone played around with gcc optimizations? Instead of my normal
dhrystone runs I took the jpegsrc.v6b.tar.gz jpeg image
compressor/decompressor and built up a test for the gba.

What is interesting is if I use -O3 or -O2 optimizations on newlib,
libjpeg.a or the application itself the performance stays within a 1%
window meaning -O3 optimizations across the board only gain you 1% or less
than -O2.

The key factor of course is the gba's prefetch buffer, that gives a
performance boost of 27 or so percent. I am using 3/1 timing on the rom...

http://www.dwelch.com/gba/gbajpeg.zip (application source)
http://www.dwelch.com/gba/jpegsrc.v6b.tar.gz (libjpeg.a source)
./configure arm-whatever-elf
./change the makefile to use arm-whatever-elf-gcc instead of just gcc
make libjpeg.a
and save it somewhere

Note the timing results are in the form
INTCOUNT x y

where x is a small number like 1 or 2 and y is a bigger number (perhaps)
x is the number of interrupts or rollovers of the internal counter y is the
remainder

so
INTCOUNT 1 15471

means 1 rollover or 65536 counts
so the total score is 65536*1 + 15471 or 81007 counts on the counter.

The above run without prefetch enabled was
INTCOUNT 1 38320
or 103856 counts which is 28% slower...


Just curious to see if anyone else has done these types of comparisons with
real applications.

David





Mon Mar 10, 2003 9:11 pm

dwelchgba
Offline Offline
Send Email Send Email

Forward
Message #13808 of 15019 |
Expand Messages Author Sort by Date

Hi, I've seen the devkitadv-related binaries and targets and so forth referred to with arm-agb-elf, arm-thumb-elf, arm-elf, etc. Can someone explain why there...
nanchaku
Offline Send Email
Nov 11, 2002
9:17 am

... If I understand things correctly it is something like this: :) an arm-agb-elf toolchain consists of a gcc and binutils patched to provide a new target...
Kuno Woudt
warptmt
Offline Send Email
Nov 11, 2002
5:40 pm

the center of the name has absolutely no meaning whatsoever. arm-agb-elf, arm-thumb-elf, arm-elf, arm-unknown-elf are merely names. the important part is the...
Dave Murphy
gameboy_dave
Online Now Send Email
Nov 11, 2002
6:36 pm

This may be old, but I've been out of the loop for a while ^_^. There was a thread a few months ago concerning the difference between arm-elf, ...
Jason Wilkins
fenix@...
Send Email
Feb 23, 2003
12:51 pm

... It's so old I can't find the relevant message on my system :/ I'm relatively sure it's completely out of context. The accepted naming convention appears to...
Dave Murphy
gameboy_dave
Online Now Send Email
Feb 24, 2003
12:06 am

Oh no, I'm not objecting at all! I was just saying that for consistencing, no one should use arm-agb-elf unless they are building devkit advance. I would...
Jason Wilkins
fenix@...
Send Email
Feb 26, 2003
9:08 am

... just checking :) Now that you've decided to move to minsys there's probably more to be gained from collaboration - compiling gcc for anything not already...
Dave Murphy
gameboy_dave
Online Now Send Email
Feb 26, 2003
11:01 am

... I'm not so sure. A header file would be a good idea, but using the purported official register names may get one in trouble with trade secret law. ... ...
Damian Yerrick <d_yer...
yerricde
Offline Send Email
Feb 26, 2003
6:46 pm

... I'm not sure that this would be a problem given that so much information is now publically available. How do we know Martin's docs are the purported ...
Dave Murphy
gameboy_dave
Online Now Send Email
Feb 27, 2003
12:54 am

... http://www.work.de/nocash/gbatek.htm "002h - Undocumented - Green Swap (R/W)" "The current GBA BIOS addresses only the upper eight bits of this register...
Damian Yerrick <d_yer...
yerricde
Offline Send Email
Mar 1, 2003
5:07 am

... Having access to official developers who tell him when he's found something undocumented? In any case whether or not Martin has access to official docs has...
Dave Murphy
gameboy_dave
Online Now Send Email
Mar 1, 2003
1:56 pm

... From: "Dave Murphy" <wintermute2002@...> [...] ... what kind of stuff are you thinking about stripping out? although i override malloc/free and a...
matthew conte
whatwouldbig...
Offline Send Email
Feb 26, 2003
12:12 pm

... all being well now Jason is moving to minsys they should both end up being the same thing :) ... Newlib accounts for a great deal of the download size...
Dave Murphy
gameboy_dave
Online Now Send Email
Feb 26, 2003
2:34 pm

... Wow, how did this happen? For devkit advance release 4, the newlib package is only 4 megabytes....
Jason Wilkins
fenix@...
Send Email
Feb 26, 2003
6:46 pm

I has been very quiet on this reflector is anyone still out there? Has anyone played around with gcc optimizations? Instead of my normal dhrystone runs I took...
David Welch
dwelchgba
Offline Send Email
Mar 10, 2003
11:00 pm

This is Jason... ... Actually, some useless stuff does get linked in. I myself never planned on removing any functions which could be implemented in some way...
Jason Wilkins
fenix@...
Send Email
Feb 26, 2003
5:33 pm

This may all be beaten to death already, perhaps not, I too have switched to mingw (Thanks Dave Murphy and others) I use my gcc build for both the gba and...
David Welch
dwelchgba
Offline Send Email
Feb 26, 2003
6:46 pm

... There is not such thing as a generic link script or crt0.S I include one with DevKit Advance which is useful for projects without special needs, and the...
Jason Wilkins
fenix@...
Send Email
Feb 26, 2003
10:09 pm

... i am using devkitadv for both gba and gp32 in parallel, using my own linkerscripts,crt0 etc. works great as far as i can tell :O) in practise, if you want...
Groepaz
groepaz2000
Offline Send Email
Feb 26, 2003
11:42 pm

... I totally agree with this. Even though I have learned to understand linkerscripts and crt0.S startup files, I remember it was a real pain in the beginning....
Andreas Thorsén
anthor2003
Offline Send Email
Feb 26, 2003
11:43 pm

... well I'd have to say it's a fine idea. The problem I found with cygwin relates to official gcc based devkits - swapping about between platforms often...
Dave Murphy
gameboy_dave
Online Now Send Email
Feb 27, 2003
1:33 pm

I really think we are on the same page here Jason, not sure if we are going round and round... I tried devkitadv early on in my arm/gba experiments and then...
David Welch
dwelchgba
Offline Send Email
Feb 27, 2003
9:13 am

... You are correct, I did not keep up with new releases of GCC. Even with CVS I am worried about how much work it will be to move to 3.3 and 3.4. ...
Jason Wilkins
fenix@...
Send Email
Feb 27, 2003
5:05 pm

I did some tests and HAS_INIT_SECTION doesnt seem to make a difference so it is a waste of time, I wont bother doing that anymore... configuring gcc...
David Welch
dwelchgba
Offline Send Email
Mar 1, 2003
1:56 pm

... From: "Andreas Thorsén" <yahoo@...> ... the ... Coming back 2 year later I wonder if such an easy to use kit is really needed anymore. I guess...
Jason Wilkins
fenix@...
Send Email
Feb 27, 2003
9:17 am

... http://gcc.gnu.org/onlinedocs/gcc-3.2.2/gcc/Target-Options.html#Target%20Opt ... Coolness, I will be investigating this option very shortly. It actually ...
Jason Wilkins
fenix@...
Send Email
Feb 27, 2003
9:17 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help