[fpc-devel] arm embedded cortexM3 unrecognized opcode
mschnell at lumino.de
Wed Jul 14 11:33:05 CEST 2010
On 07/13/2010 05:38 PM, Hans-Peter Diettrich wrote:
> I don't know details about this CPU, but possibly priviledged
> operations (and registers) are not part of the CPU definition, because
> these cannot be used in ordinary applications.
> It may be a good idea to create multiple code generators, for machines
> that can be used either for non-priviledged (application) or
> privileged (system, driver...) coding. At least a priviledge level
> should be passed to the compiler and assembler, so that it can flag
> the need for privileged instructions in the given source code.
If necessary, you can always code the very unusual instructions manually
to hex code and provide them as DC in the ASM code.
More information about the fpc-devel