All Projects → larsbrinkhoff → xForth

larsbrinkhoff / xForth

Licence: GPL-3.0 license
Experimental Forth cross compiler for tiny devices

Programming Languages

forth
179 projects
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to xForth

IntrOS
Free cooperative operating system (OS) for microcontrollers
Stars: ✭ 38 (-28.3%)
Mutual labels:  avr, microcontroller, cortex-m, stm8
DemOS
Free, simple, extremely lightweight, stackless, cooperative, co-routine system (OS) for microcontrollers
Stars: ✭ 18 (-66.04%)
Mutual labels:  avr, microcontroller, cortex-m, stm8
Pyocd
Open source Python library for programming and debugging Arm Cortex-M microcontrollers
Stars: ✭ 550 (+937.74%)
Mutual labels:  microcontroller, embedded, cortex-m
mdepx
MDEPX — A BSD-style RTOS
Stars: ✭ 17 (-67.92%)
Mutual labels:  microcontroller, embedded, cortex-m
Distortos
object-oriented C++ RTOS for microcontrollers
Stars: ✭ 354 (+567.92%)
Mutual labels:  microcontroller, embedded, cortex-m
Modm
modm: a C++20 library generator for AVR and ARM Cortex-M devices
Stars: ✭ 375 (+607.55%)
Mutual labels:  avr, microcontroller, cortex-m
Tock
A secure embedded operating system for microcontrollers
Stars: ✭ 3,258 (+6047.17%)
Mutual labels:  microcontroller, embedded, cortex-m
Daplink
Stars: ✭ 1,162 (+2092.45%)
Mutual labels:  microcontroller, embedded, cortex-m
Utensor
TinyML AI inference library
Stars: ✭ 1,295 (+2343.4%)
Mutual labels:  microcontroller, embedded, cortex-m
Platformio Core
PlatformIO is a professional collaborative platform for embedded development 👽 A place where Developers and Teams have true Freedom! No more vendor lock-in!
Stars: ✭ 5,539 (+10350.94%)
Mutual labels:  avr, microcontroller, embedded
Xpcc
DEPRECATED, use our successor library https://modm.io instead
Stars: ✭ 177 (+233.96%)
Mutual labels:  avr, microcontroller, cortex-m
alloc-cortex-m
A heap allocator for Cortex-M processors
Stars: ✭ 139 (+162.26%)
Mutual labels:  microcontroller, cortex-m
msp430-rng
Random (SLAA338) and pseudorandom (LCG) number generation.
Stars: ✭ 19 (-64.15%)
Mutual labels:  microcontroller, msp430
zmu
zmu - Emulator for Microcontroller Systems
Stars: ✭ 70 (+32.08%)
Mutual labels:  microcontroller, cortex-m
build-gcc
Shell scripts to build various gcc cross-compilers (primarily djgpp)
Stars: ✭ 34 (-35.85%)
Mutual labels:  avr, cross-compiler
m4vga-rs
VGA-style video output for STM32F4 processors, in Rust
Stars: ✭ 122 (+130.19%)
Mutual labels:  microcontroller, cortex-m
perf counter
A dedicated performance counter for Cortex-M systick. It shares the SysTick with users' original SysTick function without interfere it. This library will bring new functionalities, such as performance counter, delay_us and clock() service defined in time.h
Stars: ✭ 197 (+271.7%)
Mutual labels:  microcontroller, cortex-m
libavrutil
Easy to use, lightweight and unified library for performing common microcontroller tasks
Stars: ✭ 21 (-60.38%)
Mutual labels:  avr, microcontroller
Open-SAE-J1939
SAE J1939 protocol free to use for embedded systems or PC with CAN-bus
Stars: ✭ 120 (+126.42%)
Mutual labels:  avr, pic
rustBoot
rustBoot is a standalone bootloader written entirely in `Rust`, designed to run on anything from a microcontroller to a system on chip. It can be used to boot into bare-metal firmware or Linux.
Stars: ✭ 99 (+86.79%)
Mutual labels:  microcontroller, cortex-m

lbForth Lite

This is a Forth cross compiler for tiny devices. It's based on lbForth. Supported targets are 8051, AVR, Cortex-M, MSP430, PIC, and STM8. There's also support for some classic machines: 6502 and PDP-8.

This is a temporary battleground to get things up and running. I expect to fold the finished result back into lbForth.

The targets are tested using these simulators: naken_asm, uCsim, simulavr, gpsim, simh, and thumbulator. The status of the tests is: Test

The compiler is suitable for parts with 1K program memory and 64 bytes RAM. The kernel code occupies 100-500 bytes, and it's recommended to reserve about 24 bytes for the stacks. At this size, only a bare minimum of Forth words are supported. All targets come with a prefix assembler with its own unique syntax.

There is no resident interpreter or compiler in the target. Things are set up to provide target interaction through tethered operation, but it's not implemented yet. For now, the output is a flat binary file. ELF or Intel hex format can be made available on request.

The assemblers, compiler, and kernel are written in Forth and are all very simple. The user is encouraged to make modifications as see fit.

Manual

See here.

Glossary

Compile-time words:

: ; [ ] CONSTANT VARIABLE CODE END-CODE
['] [CHAR] LITERAL
IF THEN ELSE AHEAD BEGIN AGAIN UNTIL WHILE REPEAT

Run-time words:

COLD WARM
! C! @ C@ +!
DROP NIP DUP ?DUP SWAP OVER
>R R> R@
+ - 2* 2/ INVERT NEGATE AND OR XOR 1+ 1- CELL+
0= 0< 0<> = <>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].