• 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
  • ELF entry point in thumb mode (armv7/aarch32)

    Vincent Siles
    Vincent Siles

    Hi !

    We are writing an OS targeting 32 bits ARM platform, where binaries can be compiled in ARM or in Thumb mode.

    At the moment, to execute a new process, I load the info from an ELF, set lr_usr to the entry point address, set spsr_usr to a default value…

    • Answered
    • over 3 years ago
    • Processors
    • Cortex-A / A-Profile forum
  • View related content throughout Processors
  • More
  • Cancel