larsbrinkhoff / xForth

Experimental Forth cross compiler for tiny devices
GNU General Public License v3.0
61 stars 14 forks source link

Cortex-M / Thumb #15

Closed larsbrinkhoff closed 6 years ago

larsbrinkhoff commented 6 years ago

The next target ought to be Cortex-M devices, aka the Thumb instruction set. (At this point, I don't need Thumb2 instructions.)

I wonder if there's a faithful simulator for e.g. Cortex-M0?

larsbrinkhoff commented 6 years ago

This modified QEMU seems promising: https://github.com/sushihangover/qemu

Hey @sushihangover!

larsbrinkhoff commented 6 years ago

It's not hard to find an M0 development board, but I'd like one with just 4K flash.

larsbrinkhoff commented 6 years ago

Another QEMU modified for the STM32F1 series. That's Cortex-M3, but close enough? https://github.com/beckus/qemu_stm32

Hey @beckus!

larsbrinkhoff commented 6 years ago

According to ARM documentation, the Cortex-M0 implements the ARMv6-M instuction set which comprises:

larsbrinkhoff commented 6 years ago

A third fork of QEMU:
https://github.com/gnu-mcu-eclipse/qemu