ARM Overview: Difference between revisions

added two more links about division issues as it actually can be quite complex depending on what CPUs are targeted and the features they have enabled
[unchecked revision][unchecked revision]
(added at least a link to some source of information until I (or someone) can come back and write a more detailed and accurate section)
(added two more links about division issues as it actually can be quite complex depending on what CPUs are targeted and the features they have enabled)
Line 249:
==Coding Gotchas==
===== Missing Division Functions (__aeabi_uidivmod, __aeabi_idiv) / No Division Support =====
This issue is actually complicated because different CPUs may not support hardware division, support it only through the floating point operations, in thumb mode, in native mode, or a combination. Also, in certain situations you may find it faster or more compact to use different methods because you may be interested in code size or performance.
See, [http://forum.osdev.org/viewtopic.php?f=1&t=23857&p=212244 this forum post].
 
The following links talk about different methods in handling this problem:
 
See, [http://forum.osdev.org/viewtopic.php?f=1&t=23857&p=212244 this forum post].
 
http://stackoverflow.com/questions/8348030/how-does-one-do-integer-signed-or-unsigned-division-on-arm
 
Also, some extra information that maybe useful:
 
http://www.linkedin.com/groups/ARM-cores-hardware-division-85447.S.242517259
 
===== Unaligned Memory Access And Byte Order =====
294

edits