flat assembler
Message board for the users of flat assembler.
Index
> Non-x86 architectures > [fasmarm] Is it possible to disable optimizations? |
Author |
|
revolution 03 Jul 2024, 19:48
Kellan2255 wrote: Is there any way to disable optimizations entirely? You can disable the availability of encodings using the processor and coprocessor directives. This will prevent fasmarm from finding some alternative instructions if they are not made available to it. |
|||
03 Jul 2024, 19:48 |
|
Kellan2255 03 Jul 2024, 20:03
These are instructions that are available in all versions of the ARM architecture.
|
|||
03 Jul 2024, 20:03 |
|
revolution 03 Jul 2024, 20:25
All instructions have a processor or a coprocessor switch to enable/disable them.
Please give an example of what you are trying to achieve. |
|||
03 Jul 2024, 20:25 |
|
Kellan2255 03 Jul 2024, 20:59
In this case where I'm trying to test STM with r15 as the base register and various register list combinations
Code: stmib r15, {r0} gets turned into Code: str r0, [r15, #4] The instruction does the same thing. It's just not what I'm trying to test. |
|||
03 Jul 2024, 20:59 |
|
revolution 03 Jul 2024, 21:20
That is because r15 is not valid as a source register for LDM, so fasmarm will select something else that is valid as a replacement.
Both of those instructions are V1 so you are correct that deselecting a processor bit won't be able to prevent the substitution without modifying the source code. |
|||
03 Jul 2024, 21:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.