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 kerravon E-mail, Ligao, Free World North, 05.07.2021, 00:51

> > # Without "-s", this produces an executable (but can be ignored)
> > # With "-s" this produces crap (which can be deleted)
> > # I choose to delete crap
> > .pas.o:
> > fpc -a -s $<
> > rm -fr link*.res
> > rm -fr ppas.bat
> > $(AS) -o $@ $*.s
> > rm -f $*.s
>
>
> Word of advise, FPC has no C compatible build mode so makefiles are hard.
>
> 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?

Thanks. Paul.

 

Complete thread:

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