Mail Archives: djgpp/1997/01/09/03:23:28
Tudor <tudor AT cam DOT org> was overheard mumbling incoherently about Re: A
couple quick questions invloving GNU Pascal: Books, Accessing memory
and Ports:
>I have almost the same problem.GNU pascal is supposed to be compatible
>with Turbo pascal;
>What happens if I say
>....
>program foo;
>uses crt; <---legal in TP & BP ;GNU ???
>.....
GPC supports the uses statement, but AFAIK, the crt unit hasn't been
ported.
>and another thingy: TP & BP don't make OBJ's,the linking is automatic.Is
>this a feature of Pascal or just the borland products?I mean,will GNU
>pascal produce any .O's ?Can I link GNU Pascal code in GCC progs?
>Just curios..
GPC works just like gcc. You can do
gpc foo.pas -o foo.exe -> produces foo.exe, no .o
gpc -c foo.pas -> produces foo.o
You can call c functions from pascal, as long as you give it a
prototype:
function my_c_func(x:integer):integer;c;
I haven't tried the other way around.
__ __
/> /_ /| / /\ /| /> /| / /_ / /
/> /_ / |/ /_/ /-| / \ / |/ /_ /_ /_
http://users.vnet.net/bdarnell
bdarnell AT vnet DOT net
- Raw text -