Re: ARM code size
daniel wrote:
Hi,
I am moving from 8051 to ARM, I have a question related to code size.
In 8051, if code size is about 64K bytes, it should be big enough.
However, for ARM(take LPC2214 as example), it has 256k bytes built-in
flash,
because ARM instruction is 32bits word long, so its actually code size 64K
instructions, then my question is 64K instructions code size is enough most
ARM project ? Thanks.
An ARM instruction is capable of doing much more than
an 8051 instruction, so you should need less instructions
for the same task.
If space is a concern, get an ARM with the 'T' (like ARM7TDMI)
and use the Thumb mode. The size is roughly 60% of the equivalent
32-bit ARM code, albeit somewhat slower.
--
Tauno Voipio
tauno voipio (at) iki fi
'
.
Relevant Pages
- Re: Learning ARM assembler...
... and it's quite clear that two of the aims behind the ARM processor was ... aim, because they were set up in such a way that they ... typically requiring more instructions to perform a task, ... market, it may need to acquire specialised or esoteric ... (comp.sys.acorn.programmer) - Re: Hi
... For history of older ARM architectures, the Wikipedia got a nice table ... ARM7 is based on arch v4, with ARM instructions only. ... ARM1136 come with a new architecture, which include new instructions, ... But Cortex-M3 doesn't not support ARM ... (comp.sys.arm) - Re: Hi
... The latest ARM ISA is ARMv7 ... For history of older ARM architectures, the Wikipedia got a nice table summarised the processor cores and their corresponding architecture. ... ARM7 is based on arch v4, with ARM instructions only. ... But Cortex-M3 doesn't not support ARM ... (comp.sys.arm) - Re: IIR implementation on ARM
... I have a question about how a biquad is best implemented on an ARM ... A biquad needs multiply-and-accumulate instructions so I have looked at ... I've met DSP processors that had no extended precision support whatsoever. ... ARM CPUs are *not* DSPs. ... (comp.dsp) - Re: [patch 2/3] mutex subsystem: fastpath inlining
... >> Some architectures, notably ARM for instance, might benefit from ... So our starting point for comparison is 9 instructions for every down ... downand every upsimply going with mutexes. ... cycles since a function prologue and epilogue is somewhat costly on ARM, ... (Linux-Kernel) |
|