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

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

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
c++ make file   Message List  
Reply | Forward Message #12843 of 15019 |
ARM versus Thumb


Does anyone have any thoughts on the advantages/disadvantages of ARM code
versus THUMB code?

It seems to be generally accepted that Thumb is more efficient from ROM &
ARM is more efficient from internal RAM. I haven't really tested much other
than GCC compiled Thumb code is plenty fast enough for sprite based 2d games
& going 100% assembly in either mode really isn't worth the hassle for
simple code. It seems obvious that using ARM in internal RAM for rasterising
code should be the way to go.

Has anyone tested the efficiency of hand optimised code for both modes in
internal RAM?

Personally I prefer assembly to high level languages but I haven't yet found
a decent macro assember for ARM that doesn't cost big bucks. Keeping an eye
on the assembly output of GCC seems to be the best way of optimising code &
learning how to get the compiler to do what you want.

Dave






Tue Oct 1, 2002 9:04 pm

gameboy_dave
Online Now Online Now
Send Email Send Email

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

I'm trying to figure out the correct way to write a make for MSVC, but I keep getting the following: undefined reference to `__gccmain' undefined reference to...
j_north2002
Offline Send Email
Oct 1, 2002
3:12 am

try adding -lstdc++...
Stuart McVicar
semcvicar
Offline Send Email
Oct 1, 2002
11:46 am

... I've tried adding this option in; trying before and after all of the other options. I'm getting the same errors. Any other suggestions?...
j_north2002
Offline Send Email
Oct 1, 2002
3:06 pm

... the ... These are my options right now: maybe the paths are incorrect? LIBDIR = C:\GBA\lib\gcc-lib\arm-agb-elf\3.0.2\interwork LIBDIR2 =...
j_north2002
Offline Send Email
Oct 1, 2002
6:42 pm

My library inclusions are: -lstdc++ -lgcc -lc Order is important on library inclusions unless you use the -( -) grouping arguments. I know that memcpy and...
John Seghers
johnse98072
Offline Send Email
Oct 1, 2002
7:38 pm

... grouping ... they ... be a problem ... I've now rearranged it to this: LDFLAGS = -L $(LIBDIR) -L $(LIBDIR2) -T lnkscript -lstdc++ -lgcc -lc same errors ......
j_north2002
Offline Send Email
Oct 1, 2002
9:35 pm

Does anyone have any thoughts on the advantages/disadvantages of ARM code versus THUMB code? It seems to be generally accepted that Thumb is more efficient...
Dave Murphy
gameboy_dave
Online Now Send Email
Oct 1, 2002
9:36 pm

... Thumb is also more efficient from EWRAM. Code running from EWRAM drains the battery much more slowly slower than code running from ROM, even though it...
yerricde
Offline Send Email
Oct 2, 2002
12:37 am

... depends on your update code to be honest. Hardware sprites don't use mush in the way of CPU time :) the main problem you have is collision since that needs...
Dave Murphy
gameboy_dave
Online Now Send Email
Oct 2, 2002
9:31 am

... When you look at it mathematically, sector-based collision is entirely equivalent to tile-based collision. The difference lies in how large the sectors...
yerricde
Offline Send Email
Oct 3, 2002
6:25 pm

... True ! ... *ahem* I've been trying to do overlays with SDT 2.5 but couldn't succeed. I've read the ADS docs but it seems that the possibility to do...
6re9ouINet
joelouiz
Offline Send Email
Oct 2, 2002
9:32 am

... If you're registered (probably since you're using SDT), I seem to remember that Nintendo's Yoshi Demo features some kind of data overlay in the linkscript....
Omar Cornut
segamastersy...
Offline Send Email
Oct 3, 2002
8:18 am

Hi Dave, ... THUMB in ROM: Smaller, saves precious IWRAM. ARM in IWRAM: Generally about 4x faster than thumb in ROM. Putting ARM anywhere but IWRAM isn't a...
James Daniels
j_r_daniels
Offline Send Email
Oct 2, 2002
2:26 am

... From: "yerricde" <d_yerrick@...> ... unfortunately, i can sort of agree. this *isn't* how you're supposed to optimize code, but it seems sometimes...
Matthew Conte
whatwouldbig...
Offline Send Email
Oct 2, 2002
9:32 am

I dont think its a bad idea to let a compiler, good or bad, do your initial build from a high level language to asm and then tweak the asm for better...
David Welch
dwelchgba
Offline Send Email
Oct 3, 2002
8:17 am

Hello David, DW> optimizations, etc? Are there processors (68K, x86, etc) where optimized DW> gcc output is competitive DW> with commercial compilers or does...
groepaz
groepaz2000
Offline Send Email
Oct 4, 2002
5:00 pm

... yes, it is ... ;-) cheers, Markus...
Markus Glanzer
vampy2000.geo
Offline Send Email
Oct 2, 2002
2:11 pm

So you want a free macro assembler for ARM? www.goldroad.co.uk very nice one it seems.. -henrik ... Fran: Dave Murphy [mailto:wintermute2002@...] ...
Henrik Rydgard
meloditronic@...
Send Email
Oct 2, 2002
5:18 pm

I found some bugs in goldroad and sent them to the author. I haven't heard a peep in response. Particularly, improper instructions were being assembled in...
Mike Schwartz
mykes@...
Send Email
Oct 2, 2002
8:59 pm

From: "j_north2002" <johnny_north@...> ... So another theory goes up in smoke :( ... Well, almost. What you have listed there as CPPFLAGS should...
John Seghers
johnse98072
Offline Send Email
Oct 1, 2002
11:28 pm

At the risk of being overindulgent here... I seem to have gotten rid of the undef refs by placing the linker flags at the end of the linked files list along...
j_north2002
Offline Send Email
Oct 2, 2002
2:56 am

LD is trying to include the file SFBB.elf as if it were an object file. The -o signifies the name of the destination file. if you leave -o off I think it will...
Stuart McVicar
semcvicar
Offline Send Email
Oct 2, 2002
3:12 am

... file. ... off I think it will try and output to a.out ... I made the suggested change: SFBB.elf: crt0.o crtbegin.o crtend.o main.o background.o board.o ...
j_north2002
Offline Send Email
Oct 2, 2002
4:30 pm

... Suggestion from Jeff nailed the prolem on this. For the benefit of the archives, ld on the second line of the linker rule changed to gcc i.e. SFBB.elf:...
j_north2002
Offline Send Email
Oct 2, 2002
7:42 pm

Here are the relevant lines from my makefile: CFLAGS = $(IncPath) -mthumb -mthumb-interwork -c -g $(OPTFLAG) -Wall -fverbose-asm SFLAGS = $(IncPath)...
John Seghers
johnse98072
Offline Send Email
Oct 2, 2002
7:42 pm
Advanced

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