Archive for the ‘ARM’ Category

Building an arm-cross-gnu-toolchain

Friday, December 21st, 2007

Building an arm-cross-gnu-toolchain can be somewhat painful. I'm posting here how I could achieve this after reading lots of documents over the web.

This will be helping me keeping up-to-date with binutils and gcc versions when building arm kernels :-)

(more...)

VN:F [1.9.0_1079]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.0_1079]
Rating: 0 (from 0 votes)

Efficient C for ARM processors – PART I

Wednesday, December 5th, 2007

ARM is an architecture 32-bit RISC based. Which means you have to always load values to its internal registers before working with those values.

Also, it expects data access to be 32-bit aligned. Unaligned access in ARM aren't denied, but causes extra overhead on code execution.

On this first part of this series, we'll see that int variables (or any variation of 32-bit variables) are the best choice when declaring local variables in functions that'll run on ARM processor cores.

We assume you're familiar with C programming language and can read ARM assembly code.

(more...)

VN:F [1.9.0_1079]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.0_1079]
Rating: 0 (from 0 votes)