Sign inSign up

200ms/fpc_devf

By 200ms

•Updated over 1 year ago

Free Pascal compiler - open source Pascal compiler

Image
Languages & frameworks
0

1.1K

200ms/fpc_devf repository overview

⁠Free Pascal Compiler

If you have legacy Pascal code or want to explore computer history, check out Free Pascal⁠. Developed in the 70s and 80s, this language was traditionally taught as a first programming language in many university courses during the 80s and 90s. Free Pascal is a mature, versatile, open-source compiler for Pascal and Object Pascal.

⁠Launching

Prepare your Pascal code. For example, here's a simple "Hello, World!" program:

program helloWorld(output);
begin
	writeLn('Hello, World!')
end.

Let's create a pas_code/ directory to hold a Pascal project. Save the code above in a file named pas_code/helloworld.pas.

  1. Create a container with pas_code/ mapped to /home/devf:
    docker pull 200ms/fpc_devf
    docker run -it -v pas_code:/home/devf 200ms/fpc_devf bash
    
  2. Inside the container, compile your code:
    fpc helloworld.pas
    
  3. Run the compiled program:
    ./helloworld
    

Enjoy and have fun exploring Pascal!

Tag summary

Content type

Image

Digest

sha256:b1b54a6f9…

Size

455.4 MB

Last updated

almost 2 years ago

docker pull 200ms/fpc_devf