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 #13804 of 15019 |
Re: [gbadev] arm-agb-elf arm-thumb-elf arm-elf (O.O)


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 --with-cpu=arm7tdmi doesnt seem to make a difference, the
elf files come out different but the binary is the same. When compiling
using -mtune=arm7 or -mtune=arm9, etc do alter the size and performance of
the binary, but -mtune=arm7tdmi does not make a difference the numbers come
out the same (as if it were a default).

Compiling newlib with -O3 optimizations vs the default -O2 does not affect
the performance of the dhrystone, it does affect the binary size though,
makes it bigger. I am going to find an example or two of something other
than the dhrystone that will make calls into newlib to show what affect the
-O3 optimization has on the newlib library (good or bad).

David







> > #define HAS_INIT_SECTION,
> > ecos uses this, I was trying to do something with the do_global_ctors or
> > dtors functions, like remove them because they were wasting memory (I
> > think), I dont remember I have always added it in there, ecos.h still has
> > it, it looks like gcc/crtstuff.c might look for it...
>
>Is this the option that tells gcc to create .init and .fini sections? I
>actually use the configure option --diable-init-fini or something like
>that to disable it because Jeff's crt0.S would just ignore it. Or, is
>this handled by __gccmain. It has been too long since I investigated C++
>compilation to remember ^_^
>
> > I dont know if it has come up yet but I strongly vote to keep the long
> form
> > of the executable names: arm-agb-elf-gcc vs gcc.
>
>In dka, I keep the long names, and then use my mklinkstub program (made
>possible through clever use of objcopy ^_^) to create the short name
>versions.
>
>I never could finish building gcc if I tried to tell it not to use the
>prefix. Also, the documentation for building gcc now says that it ignores
>any attempt to set the name prefix if you are building a cross compiler.
>They probably did this because it breaks the build process.
>
>I always felt like it wasn't a big deal to type 'arm-agb-elf-gcc', but I
>did not even want to deal with the issue, so I wrote mklinkstub to
>simulate symbolic links.
>
> > I only want one gcc executable in the path and that one should build
> > for the native host environment, cygwin, mingw, linux, whatever. For
> > arm cross compiling keep the name different arm-agb-elf-gcc.
>
>I think this can be solve by being aware of your path. If the native path
>is first, then it will cover up all the linkstubs in the dka/bin
>directory.
>
>I need to look into the -b option more and see how it would relate to the
>native compiler. I was thinking something like this:
>
>arm-agb-elf-gcc ... # compile for gameboy advance
>arm-agb-elf-gcc -b agb # also compile for gameboy advance
>arm-agb-elf-gcc -b gp32 # compile for gp32
>arm-gp32-elf-gcc # compile for gp32
>arm-gp32-elf-gcc -b gp32 ... # also compile for gp32
>arm-gp32-elf-gcc -b agb # compile for gameboy advance
>gcc # native compiler or gba compiler
>depending on PATH
>gcc -b agb # fails for native compiler
>gcc -b gp32 # fails for native compiler
>
>In cygwin or msys, you would probably have your path setup so that the
>short name 'gcc' would be covered by the native compiler. But, if you
>were using cmd or command.com (I dunno why, Cygwin or msys are much nicer
>shells), then you probably do not have another gcc, so you can use the
>short name.
>
>When in doubt do a gcc --version (Unlike what rmitton says, changing
>version.c is not "just to be fancy")
>
>
> > Last comment, I cant remember what devkitadv does specifically but I have
> > seen a number of arm cross compiler builders use a huge list of switches
> > when configuring gcc, the vast majority of those are already the defaults
> > or are obsolete or dont apply to arm builds...
>
>I revisited the documentation when I started working on release 5, and
>eliminated a few switches. I am almost completely sure that all the
>switches I used before were relavent for gcc version 3.0.2, but they have
>changed slightly.
>
>--with-headers is now deprecated, and eliminating it will still result in
>a successful build. The replacement, --with-sys-root, is not required
>either.
>
>I am not sure if --disable-shared applies to generic ARM targets. Perhaps
>it only applies to targets with OSes.
>
>Same goes for --disable-threads. However, I figured that since those
>options accurately describe the GBA, that I would keep them.
>
>--enable-targets=arm-coff,arm-aout are there just for completeness. I
>figured that someone might find a use for them, and if so then they would
>not have to recompile DKA. arm-coff is their because I believe that is
>what Microsoft's ARM compiler would output. I wanted to experiment with
>it, since it is free and may make better code than gcc.
>
>Perhaps I should add arm-pe so that the devkit could compile PocketPC
>executables (I think). ^_^
>
>I kept --enable-win32-registry, although I never had any problems getting
>gcc to relocate to different directories.
>
>--with-cpu=arm7tdmi makes the gameboy processor the default.
>
>And of course --target=arm-agb-elf so that it uses the custom linkscript
>and crt0.s.
>
>I cannot think of any more switches except for --with-newlib
>
>
>
>
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





Sat Mar 1, 2003 7:18 am

dwelchgba
Offline Offline
Send Email Send Email

Forward
Message #13804 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
Online Now 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...
Online Now 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