A FORTH compiler tutorial in x86 asm (2009)
This text introduces a tutorial and compiler for FORTH, a minimalist programming language known for creating complete operating systems in a few thousand lines. It covers FORTH's structure, direct threaded code, setup on Linux, and additional learning resources.
Read original articleThis text provides a tutorial and compiler for FORTH, a low-level programming language. FORTH is highlighted for its minimalism and the ability to write a complete operating system in a few thousand lines of code. The tutorial emphasizes understanding how FORTH is written to use it effectively. It explains the dictionary structure for storing words and the concept of redefining words. The tutorial delves into direct threaded code, a crucial aspect of FORTH, where functions are called without arguments. The text also includes instructions for setting up and assembling the FORTH compiler on Linux systems. It references other resources for learning FORTH and acknowledges the influence of other FORTH implementations. The tutorial aims to help programmers grasp the unique features and capabilities of FORTH for efficient and flexible programming.
Related
F (2006)
F is a functional concatenative language with K3 list operations and Joy's dip combinator. It enforces one-time assignment, supports floating-point and symbolic datatypes, and emphasizes function-valence and -charge theories. The language is purely functional, prohibiting side-effects and reassignment, with various primitives for arithmetic, logic, and list operations. F also provides interactive commands for debugging and manipulation, focusing on simplicity, efficiency, and functional programming paradigms.
As you learn Forth, it learns from you (1981)
The Forth programming language is highlighted for its unique features like extensibility, speed, and efficiency. Contrasted with Basic, Forth's threaded code system and data handling methods make it versatile.
Optimizing the Roc parser/compiler with data-oriented design
The blog post explores optimizing a parser/compiler with data-oriented design (DoD), comparing Array of Structs and Struct of Arrays for improved performance through memory efficiency and cache utilization. Restructuring data in the Roc compiler showcases enhanced efficiency and performance gains.
Looking ahead to 30 years of FreeDOS
FreeDOS, an open-source DOS implementation, marks its 30th anniversary on June 29, 2024. Created in 1994 as a response to Microsoft's DOS phase-out, it provides a free alternative for running programs efficiently.
The Forth Deck mini: a portable Forth computer with a discrete CPU
The Forth Deck mini is a portable computer with a discrete CPU, 40x4 LCD, 56-key QWERTY keyboard, 6.6 Wh battery lasting 6 hours. It runs on an 8-bit CMOS CPU, 32 KB ROM, 32 KB RAM, and up to 256 KB EEPROM. RS-232 and I2C-bus supported. Size: 198 x 118 x 35 mm. Keyboard kit available at Budgetronics.
Related
F (2006)
F is a functional concatenative language with K3 list operations and Joy's dip combinator. It enforces one-time assignment, supports floating-point and symbolic datatypes, and emphasizes function-valence and -charge theories. The language is purely functional, prohibiting side-effects and reassignment, with various primitives for arithmetic, logic, and list operations. F also provides interactive commands for debugging and manipulation, focusing on simplicity, efficiency, and functional programming paradigms.
As you learn Forth, it learns from you (1981)
The Forth programming language is highlighted for its unique features like extensibility, speed, and efficiency. Contrasted with Basic, Forth's threaded code system and data handling methods make it versatile.
Optimizing the Roc parser/compiler with data-oriented design
The blog post explores optimizing a parser/compiler with data-oriented design (DoD), comparing Array of Structs and Struct of Arrays for improved performance through memory efficiency and cache utilization. Restructuring data in the Roc compiler showcases enhanced efficiency and performance gains.
Looking ahead to 30 years of FreeDOS
FreeDOS, an open-source DOS implementation, marks its 30th anniversary on June 29, 2024. Created in 1994 as a response to Microsoft's DOS phase-out, it provides a free alternative for running programs efficiently.
The Forth Deck mini: a portable Forth computer with a discrete CPU
The Forth Deck mini is a portable computer with a discrete CPU, 40x4 LCD, 56-key QWERTY keyboard, 6.6 Wh battery lasting 6 hours. It runs on an 8-bit CMOS CPU, 32 KB ROM, 32 KB RAM, and up to 256 KB EEPROM. RS-232 and I2C-bus supported. Size: 198 x 118 x 35 mm. Keyboard kit available at Budgetronics.