rr@gt-cmmsr.UUCP (Richard D. Robison) (11/26/85)
I am trying to use a Pascal program to call graphics procedures in a C program. I am using a 3bd/300 with a 5620 dot map display. Here is what I have tried so far: pc -c pfile.p This does not work dmdcc cfile.c pfile.o dmdcc -c cfile.c This compiles but will not load pc pfile.p cfile.o Does anyone know how to do this correctly. C programs that call graphics procedures work fine. The problems only occur when I try to use Pascal and C together. Thanks, -- Richard D. Robison Center for Man-Machine Systems Research School of Industrial and Systems Engineering Georgia Institute of Technology Atlanta, Georgia 30332-0205 UUCP: rr@gt-cmmsr.UUCP uucp: ...!{akgua,allegra,hplabs,ihnp4,seismo,ulysses}!gatech!gt-cmmsr!rr
gwyn@brl-tgr.ARPA (Doug Gwyn <gwyn>) (11/27/85)
> pc -c pfile.p This does not work > dmdcc cfile.c pfile.o "dmdcc" is a cross-compiler, using header files for and generating code for the unique DMD execution environment. "pc" is a host compiler, generating code for use on the UNIX host system, not in the DMD. Except for the accident that the DMD and the 3B2 have similar instruction sets, there would be no chance of this combination working. Now, if you can persuade "pc" to generate C source code and then compile THAT with "dmdcc", so long as there were no dependencies on host data structures or run-time support you might be able to get the result to work. My recommendation is to program the DMD in C, but only after you get straight how its run-time environment differs from the host's. (There is quite a difference!)