Skip to content

AleksMa/A-Bauman-BTPC-macOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Bauman BeRo TinyPascal macOS

A ported version of self-hosting capable BeRo Tiny Pascal Compiler for the macOS 64-bit platform

Details

  • rtl64macOS.s - RTL asm source file for macOS
  • btpc64macOS.pas - compiler source code on Pascal
  • btpc64macOS - Mach-O compiler executable
  • /bootstrapping/btpc64macOSCrossLinux - ELF crosscompiler executable (Pascal -> Mach-O)
  • /bootstrapping/tests/ - simple programs for testing compiler and crosscompiler
  • /rtl2pas/ - RTL Mach-O executable & parsing cpp script

How-to-use

Basic compiler usage

btpc64macOS < myProgram.pas > myProgram

Bootstapping

btpc64macOS < btpc64macOS.pas > btpc64macOSCheck
diff btpc64macOS btpc64macOSCheck

RTL reassemble

as rtl64.s -o rtl64.o
ld rtl64.o -e _main -o rtl64 -lSystem

Porting notes

macOS 64-bit porting author - Alexey Mamaev.

Linux 64-bit porting author - Anthony Belyaev.

Original BTPC author - Benjamin Rosseaux.

About

Self-hosting Pascal compiler for macOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published