[fpc-devel] Project Idea: Mini-FPC

Ludo Brands ludo.brands at free.fr
Sat Sep 10 17:41:18 CEST 2011


> None, redcode, cuda.
> 
> Mini-fpc could be reduced to show proportions that it becomes 
> virtual, an 
> exercise at seperating the processing of the pascal language 
> and giving 
> meaning/sense to the tokens so it becomes ready for 
> assembling. It could be 
> reduced to such a level that it becomes a question of 
> plugging in the lower 
> parts, so it could also become more moduler.
> 
> It's also important to reduce code size and code files as 
> much as possible, 
> just searching all files for a certain keyword already takes multiple 
> seconds.
> 
> Mini-fpc would be ment to learn how free pascal works and 
> also to be able to 
> port it to other pascal languages for example Delphi, so further 
> experimentation can be done.
> 


Have a look at the P4 pascal compiler
http://homepages.cwi.nl/~steven/pascal/ . The whole compiler is written in
pascal and is only 4000 lines in 1 file. It generates a high level pcode and
comes with a pcode interpreter (1000 lines of pascal in a second file).
Simpler you can't get. Cross platform. Only standard pascal though, no
objects, etc. 

Ludo




More information about the fpc-devel mailing list