Re: Pascal Compilers
Aitor Santamaria Merino <[email protected]> Wed, 06 Nov 2002 16:54:31 +0100
| Newsgroups | gmane.os.freedos.devel |
|---|---|
| Message-ID | <[email protected]> |
> > >>>Well for programs compiled with FreePascal (FPC) you need a 386 and >>>dpmi support. The same is true with GNU Pascal (GPC), I think. >>> >>Well, are there programs compiled in FPC? >> > >In FreeDOS? Not yet. >But I think it's a pitty to work on a free OS with nonfree compilers. > Reference compiler is BorlandC3, but some people tries to make software compatible with BC2, BC++1 or WatcomC, all of them being "gratis" but non-free. Same happens to TP5.5, but the lack of asm/end is a big drawback... However, I'd wish to have such a free compiler too. >>At this moment, I am rewriting the "core", that will be mainly in >>assembler instead of Pascal, in order to reduce the memory footprint to >>a minimum. >>I could try and port to C, but I just don't want to rewrite the "X" >>stuff (Xstrings and Xfunctions) in C, it's not worth I think. Perhaps it >>could help if I knew how to get a .O file from a TP Unit. (This is for >>granted in FreePascal). >> > >There's also a Pascal to C converter (p2c). >Perhaps that can help you. > No, I dislike such tool a lot. I haven't used it, but I don't like the idea. A different idea is the "htop" or "htopas" I've heard about in FPC: no convertion is made, it only helps you import C (no C++) .O files from DJGPP. >>I seem to understand that the improvements (Units, for example) Borland >>introduced in TP over standard Pascal (and that left the "Why Pascal >>isn't..." paper by Kernighan >>obsolete) appeared themselves in some Pascal language standarization >>papers (I don't have references here about this). >> > >1. "improvements [...] over standard Pascal": > You seem to think, that BP is just an extention to standard Pascal. > But that is not true! > Borland Pascal had never been fully compatible with standard > "Pascal" (ISO-7185). > Well, I read about it long time ago in the GPC site, sorry. >>There are also TMTPascal and Pascal32, that I haven't tried, >> > >Do you have any links? > For TMTPascal, using Goole it gives: ;-) www.tmt.com For Pascal32, I last saw it in WDOSX page, http://surf.to/p32 But it seems it's not working. There's something in the page written in a language that I can't even identify (maybe slavic family language?), perhaps the project is discontinued. There are as well VirtualPascal and PascalPro, but I have never used nor seem them. Please use google for these two, I have no links. Aitor