All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

PASTA/80: Turbo Pascal 3.0-Compatible Compiler for Z80 Systems

By

mariuz

7mo ago· 11 min readenCode

Summary

PASTA/80 is a Pascal cross-compiler that targets Z80 microprocessors, generating machine code for classic systems like ZX Spectrum 48K/128K/Next and CP/M. The compiler follows Niklaus Wirth's single-pass recursive-descent approach, generating code during parsing without an explicit syntax tree. While it prioritizes compilation speed over optimization efficiency and doesn't compete with modern compilers like LLVM, it maintains Turbo Pascal 3.0 compatibility for retro computing enthusiasts.

Key quotes

· 4 pulled
PASTA/80 is a simple Pascal cross compiler targeting the Z80 microprocessor
The compiler follows the single-pass recursive-descent approach championed by Niklaus Wirth, inventor of Pascal
It doesn't have an explicit syntax tree, but instead generates code on the fly during parsing
The compiler might not always generate the most efficient code possible, but it's very fast
Snippet from the RSS feed
Turbo Pascal 3.0-compatible compiler that generates machine code for classic and modern Z80 machines (currently ZX Spectrum 48K/128K/Next and CP/M). - pleumann/pasta80

You might also wanna read