473,503 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Turbo C(/C++) runtime library source code

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.

Nov 14 '05 #1
7 7615
<probably OT for this newsgroup>

What math functions need to be reimplemented?

The math functions for Pascal should work as well as the C ones.
Reimplementing the math library should be overkill for what you're
trying to do.

</OT>

Gregory Pietsch

Nov 14 '05 #2

<ma***@tynska.cuni.cz> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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...


You can use Digital Mars C and C++, which still supports building 16 bit
applications and comes with complete runtime library source code.

-Walter
www.digitalmars.com C, C++, D compilers
Nov 14 '05 #3
"Walter" <wa****@digitalmars.nospamm.com> wrote:
<ma***@tynska.cuni.cz> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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...


You can use Digital Mars C and C++, which still supports building 16 bit
applications and comes with complete runtime library source code.


Well, we could, but have you Y2K-tested it yet? "The Software was not
designed to operate after December 31, 1999. It may be incomplete and it
may not function properly." Doesn't inspire much confidence, does it?

It may be a great compiler, but if it's that badly tested, I'm not
risking my systems to it.

Richard
Nov 14 '05 #4
> Well, we could, but have you Y2K-tested it yet? "The Software was not
designed to operate after December 31, 1999. It may be incomplete and it
may not function properly." Doesn't inspire much confidence, does it?

It may be a great compiler, but if it's that badly tested, I'm not
risking my systems to it.


Heh, you are a really funny joker. Where do you have a Y2K problem in
PC? However, there is really a problem of year 2012, as I know, in
classic PC/DOS environments.

I think Digital Mars' solution could be very good for our needs; but
I'd like to be sure, if it is really possible to link it with rest of
Turbo Pascal prog. But it seems to be able to do this job.

Rgds,
Marek P.

Nov 14 '05 #5
Hello,

On 28 May 2005, Gregory Pietsch wrote:

What math functions need to be reimplemented?

The math functions for Pascal should work as well as the C ones.
Reimplementing the math library should be overkill for what you're
trying to do.


thank you for your answer. Well, what you suggest is exactly what I
wanted to do ("implement" sin, cos, atan2,... using Pascal
functions), BUT: I'm really unhappy with reimplementing of functions
such as FIDRQQ, FIWRQQ, FJARQQ,... or what.

The solution of Digital Mars seems to be fine, as they promise to
give RTL source and compiler, which is able to compile it with Pascal
calling conventions.

But if you know about where to get the Borland's RTL library source,
it will help me a lot.
Best regards,
Marek P.

Nov 14 '05 #6
Marek Peca <ma***@tynska.cuni.cz> wrote:

[ Do not over-strip attributions. ]
Well, we could, but have you Y2K-tested it yet? "The Software was not
designed to operate after December 31, 1999. It may be incomplete and it
may not function properly." Doesn't inspire much confidence, does it?

It may be a great compiler, but if it's that badly tested, I'm not
risking my systems to it.
Heh, you are a really funny joker.


I'm quite, quite serious.
Where do you have a Y2K problem in PC?
I have no idea. The Digital Mars C compiler _was not tested_ for Y2K
compatibility, so I cannot know whether it does have such problems, can
I? And therefore, I won't trust _my_ carefully Y2K-compatible code to
such an untested compiler.
However, there is really a problem of year 2012, as I know, in
classic PC/DOS environments.


But that has nothing to do with that compiler.

Richard
Nov 14 '05 #7
On Mon, 30 May 2005 12:16:15 +0000, in comp.lang.c , Marek Peca
<ma***@tynska.cuni.cz> wrote:
Well, we could, but have you Y2K-tested it yet? "The Software was not
designed to operate after December 31, 1999. It may be incomplete and it
may not function properly." Doesn't inspire much confidence, does it?

It may be a great compiler, but if it's that badly tested, I'm not
risking my systems to it.
Heh, you are a really funny joker.


He wasn't joking. The s/w has not been tested for Y2K compliance, and
therefore might fail it.
Where do you have a Y2K problem in PC?


Ah, the voice of innocence.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>
Nov 14 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1570
by: Prashanth Badabagni | last post by:
Hi , can any one please help me to get the source code of the c library ( stdio.h , stdlib.h ....) .... Thanks in advance Prashanth ( Man who saw the end of war )
11
2277
by: Tomás | last post by:
Is there anywhere on the internet where you can download actual source code of an implementation of the C++ library? Stuff like: namespace std { class string { // actual code in here } }
9
19003
by: ruoqingmm | last post by:
Hi, I want to download the source code for C library source code. Any body can help to give me a fast link? Thanks
3
1617
by: sarathy | last post by:
Hi all, I am currently working on sockets/pthreads in C ( gcc compiler on Rh9 ). Where can i find the source code for these libraries? I find only the headers and object files in my system. ...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4688
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.