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

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

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
-mthumb-interwork answer   Message List  
Reply | Forward Message #550 of 15019 |
RE: [gbadev] -mthumb-interwork answer


> Maybe is the choice between ARM or THUMB code is in fact the choice of
which memory system is used.



Basically ROM and EX_WRAM (external work RAM) are connected to the CPU by a
16-bit bus. This means that you can fetch a Thumb instruction in one
waitstate and an ARM one in two. And since Thumb instructions cover the
most common instructions, what you get is a large gain in speed. WRAM
(internal work RAM) , VRAM, palette RAM etc. are connected to the CPU by a
32-bit bus so you can place ARM instructions without a fetch penalty.
However, ARM instructions are much more powerful than Thumb instructions so
you can get a gain in speed if you use ARM instructions (plus you have
access to more registers).

Theses are the reasons why Nintendo suggest Thumb in external RAM/ROM, ARM
in internal RAM.

Best regards,
Matt D.



Mon Oct 2, 2000 8:56 am

MDavies@...
Send Email Send Email

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

hi, i answer myself The GNUPro toolkit has two compilers, one of which produces ARM assembler, and the other produces THUMB assembler. If the programmer wants...
Lao Tse
agb_n@...
Send Email
Sep 28, 2000
3:47 pm

Ok, so let's go for a more complex question: why one should use THUMB code? Isn't that the old 16bit compatibility mode available on the processor? Why not...
Giovanni Bajo
bagio@...
Send Email
Sep 28, 2000
4:08 pm

No, the thumb extensions were _added_ to the processor to make the processor more suited to handheld applications such as mobile phones, agb, etc. where ...
Neil Topham (Core De...
neilt@...
Send Email
Sep 28, 2000
4:17 pm

Hi, I think there are 3 reasons to use Thumb code: a) It takes less space to store (16bit). b) It's faster then ARM code c) and last but not least: good big...
Ontwerper
ontwerper@...
Send Email
Sep 29, 2000
1:21 pm

it's not faster than ARM that's the point, if you want small code, use THUMB if you want fast code use ARM ok? ... From: Ontwerper...
bobbyd
bobbydigital@...
Send Email
Sep 29, 2000
1:27 pm

... From: bobbyd [mailto:bobbydigital@...] Sent: 29 September 2000 14:30 To: gbadev@egroups.com Subject: RE: [gbadev] -mthumb-interwork answer it's...
Andy Mucho
andy@...
Send Email
Sep 29, 2000
2:03 pm

... I can't go conform with b) ARM code can(*) be alot faster when used for the right kind of routines. -- Manfred Linzner (Project Manager) Shin'en Multimedia...
Manfred Linzner
linzner@...
Send Email
Sep 29, 2000
1:42 pm

... But if you're having trouble keeping the pipeline full from, say, a really slow 8-bit ROM, it's possible that the gain you get from 2:1 code compression...
Steve Wiseman
steve@...
Send Email
Sep 29, 2000
1:57 pm

Hi, I must indeed correct myself: Thumb is not faster then ARM. That is: most of the time.. My first thought was that the instruction gets faster through the...
Ontwerper
ontwerper@...
Send Email
Sep 29, 2000
2:49 pm

And that, ladies and gentlemen, is the right answer! It's all in the data sheets. Everyone should read them and assimilate their meaning. I was too lazy to...
Sean Dunlevy
sean@...
Send Email
Sep 29, 2000
2:57 pm

... We only use armcode in fast RAM. so no probs with waitstates =) -- Manfred Linzner (Project Manager) Shin'en Multimedia http://www.shinen.com Tel.: ++49...
Manfred Linzner
linzner@...
Send Email
Sep 29, 2000
3:02 pm

... which memory system is used. Basically ROM and EX_WRAM (external work RAM) are connected to the CPU by a 16-bit bus. This means that you can fetch a Thumb...
Matthew Davies
MDavies@...
Send Email
Oct 2, 2000
8:56 am
Advanced

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