M
marek
Dear colleagues,
for one project, I need to link Turbo (or Borland) Pascal with (Turbo)
C code. I would strongly like to avoid rewriting (my) C routines to
Pascal (other part of project is under Unix [yes, I know about gpc and
fpc...), and my clients are medicine doctors, who reject to program in
other lang. than Pascal.
Linking of Turbo C 2 and TP 5.5 from Borland's "Antique software"
works, but there is a well-known problem with system libraries. I need
"only" math functions and alloc/free; no problem with alloc/free (can
be done in Pascal), but I really don't want to reimplement in Pascal
functions such as cast of double to int and so.
The solution mentioned everywhere is to recompile Turbo C runtime
library source with Pascal calling and naming convention switches.
But, I don't know, where or how to obtain the RTL sourcecode? I
suspect, Borland isn't interrested in support of these medieval
applications...
I haven't found it in Borland's Antique software museum. Does anybody
have these sources? Or are there somewhere available for download?
Thank you very much for your *pointers.
Best regards,
Marek P.
for one project, I need to link Turbo (or Borland) Pascal with (Turbo)
C code. I would strongly like to avoid rewriting (my) C routines to
Pascal (other part of project is under Unix [yes, I know about gpc and
fpc...), and my clients are medicine doctors, who reject to program in
other lang. than Pascal.
Linking of Turbo C 2 and TP 5.5 from Borland's "Antique software"
works, but there is a well-known problem with system libraries. I need
"only" math functions and alloc/free; no problem with alloc/free (can
be done in Pascal), but I really don't want to reimplement in Pascal
functions such as cast of double to int and so.
The solution mentioned everywhere is to recompile Turbo C runtime
library source with Pascal calling and naming convention switches.
But, I don't know, where or how to obtain the RTL sourcecode? I
suspect, Borland isn't interrested in support of these medieval
applications...
I haven't found it in Borland's Antique software museum. Does anybody
have these sources? Or are there somewhere available for download?
Thank you very much for your *pointers.
Best regards,
Marek P.