• Cortex A code / function alignment

    Vincent Siles
    Vincent Siles

    Hi !

    I am writing assembly code for some ARMv7a and ARMv8a CPU. I know that code has to be 4 bytes aligned, but I saw in several places (uboot/linux) the ".align 4" GCC directive, which will align to 2**4 = 16 bytes.

    When writing code that will…

    • Answered
    • over 3 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • Why the different encodings?

    Juha Aaltonen
    Juha Aaltonen

    Why are there different encodings of instructions?

    What's the idea/background/etc for their co-existence?

    Can different encodings be mixed in the code? (Not ARM encodings with Thumb encodings- without ARM/Thumb mode change,

    but, like A1 and A2 or T1…

    • Answered
    • over 5 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • UPREDICTABLE instructions

    Juha Aaltonen
    Juha Aaltonen

    Any idea about instructions marked as UNPREDICTABLE: can it then be UNDEFINED?

    In other words: UNDEFINED REQUIRES the instruction to cause UND-exception, but

    MAY UNPREDICTABLE do that, or does it have to execute normally except that the result may be…

    • Answered
    • over 5 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • From the CPU's point of view, how does it distinguish an assembly code is an ARM code or a Thumb code?

    Kun.Niu
    Kun.Niu

    From the CPU's point of view, how does it distinguish an assembly code is an ARM code or a Thumb code?

    Is there some signal bit represent the code is ARM or Thumb code, this is just my guess.

    • Answered
    • over 4 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Cortex-A7 instruction lists

    Juha Aaltonen
    Juha Aaltonen

    Just in case someone needs them, I made ARM and Thumb mode lists of Cortex-A7 instructions (because I didn't find them in the net).

    They are generated from ARMv7-A/R ARM with a simple AWK-script and then edited, so they may contain errors.

    The lists…

    • over 5 years ago
    • System
    • Embedded forum