Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Compiling for THUMB

2004-04-19 by embeddedjanitor

--- In lpc2000@yahoogroups.com, "jpsg123" <gonzagajohn@h...> wrote:
> Hi All,
> 
> To reduce my code size, I'm trying to build my project in THUMB. My 
question, what are 
> the things that I need to watch out in the LPC2106 if I'm running in 
THUMB mode? (e.g. Do 
> I need to handle writing to or reading from registers differently in 
THUMB?)

No. Register accesses etc are exactly the same for accessing the 
standard registers r0..r15 and accessing peripherals etc.

Thumb mode is just a "compressed" form of an ARM instruction. That is, 
every Thumb instruction decodes into an effective ARM instruction., 
Some ARM instructions do not have THumb equivalents.

You will still need to write some ARM code and tie them together (ie. 
interworking).

-- CHarles

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.