473,785 Members | 2,440 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 7637
<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.c uni.cz> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.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****@digital mars.nospamm.co m> wrote:
<ma***@tynska.c uni.cz> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.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.c uni.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.c uni.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
1587
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
2303
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
19062
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
1630
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. Regards, Sarathy
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9489
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10357
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10101
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5396
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.