Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

32-bit MSDOS (Announce)

posted by marcov, 05.07.2021, 10:00

> > IOW if a source file passed to FPC references another module that needs
> > recompilation, the compiler will automatically recursively compile it.
>
> I don't mind things being recompiled repeatedly.
> But do I end up with a .s file?
>
> > This can't be disabled. Going in this direction will make multi module
> > Pascal programs difficult.
>
> Can you give a simple example? ie a one line
> function that prints something and then a
> caller of that?


in a file called "unit1.pas"

unit unit1;

interface

function bla:integer;

implementation

functon bla:integer;
begin
result:=32;
end;
end.

then in a "prg.pas" file

uses unit1;

begin
writeln(bla);
end.

and compile "prg.pas"

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 406 users online (1 registered, 405 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum