Hello everyone,
i'm not very familiar with the insides of c++, i prefer asm... but
unfortunately i'm in need for some c-help.
(compiler switch, rewritten math.h or something)
for the following c stuff the borland c compiler creates something like
this:
C: double x = cos(value);
EXE: push value
call _cos
fstp x
the MS Visual C Compilere does this:
EXE: fld value
fcos
fstp x
So MS Visual C is much faster and does not require an external _cos
funktion. But as I'm bound to the omf obj and lib file structure i require
the borland compiler to compile the c code.
.... is it anyhow possible to get borland to compile the same???? i dislike
the use of the huge (1,3 MB) standard dll library just for using some simple
cos, sin functions
thanks,
Wolfgang Tischer 6 2809
Wolfgang Tischer wrote:
[skip] So MS Visual C is much faster and does not require an external _cos funktion. But as I'm bound to the omf obj and lib file structure i require the borland compiler to compile the c code. ... is it anyhow possible to get borland to compile the same???? i dislike the use of the huge (1,3 MB) standard dll library just for using some simple cos, sin functions
Well. There is always the possibility that you write the assembler code directly
in the source code. Discover the 'asm' statement and how it is used in your
compiler. Other then that you should ask in a Borland newsgroup, since compiler
switches are not discussed here (It could be that there is some switch that directs
the compiler in the way you want it to)
--
Karl Heinz Buchegger kb******@gascad.at
Wolfgang Tischer wrote: i'm not very familiar with the insides of c++, i prefer asm... but unfortunately i'm in need for some c-help.
For C you should use comp.lang.c, but your question seems compiler-
specific, and as such should be asked in the compiler-specific newsgroup.
I recommend borland.public.cpp.language
V
"Wolfgang Tischer" <yt*******@gmx.de> wrote in message
news:cu*************@news.t-online.com... So MS Visual C is much faster and does not require an external _cos funktion. But as I'm bound to the omf obj and lib file structure i require the borland compiler to compile the c code.
This might not help, but there was a tool called OMFCVT that shipped with
the Paradigm debugger and allowed me to compile with MSC 6. I don't know if
it'll work with Pentium. I'd probably just use inline assembler.
Borland ships tools to convert from COFF to OMF with their compiler.
Nathaniel L. Walker
"Wolfgang Tischer" <yt*******@gmx.de> wrote in message
news:cu*************@news.t-online.com... Hello everyone,
i'm not very familiar with the insides of c++, i prefer asm... but unfortunately i'm in need for some c-help. (compiler switch, rewritten math.h or something)
for the following c stuff the borland c compiler creates something like this: C: double x = cos(value); EXE: push value call _cos fstp x
the MS Visual C Compilere does this: EXE: fld value fcos fstp x
So MS Visual C is much faster and does not require an external _cos funktion. But as I'm bound to the omf obj and lib file structure i require the borland compiler to compile the c code. ... is it anyhow possible to get borland to compile the same???? i dislike the use of the huge (1,3 MB) standard dll library just for using some
simple cos, sin functions
thanks,
Wolfgang Tischer
"Mike Jolley" <mi**@wmsgaming.com> schrieb im Newsbeitrag
news:vB*****************@newssvr17.news.prodigy.co m... "Wolfgang Tischer" <yt*******@gmx.de> wrote in message news:cu*************@news.t-online.com... So MS Visual C is much faster and does not require an external _cos funktion. But as I'm bound to the omf obj and lib file structure i
require the borland compiler to compile the c code. This might not help, but there was a tool called OMFCVT that shipped with the Paradigm debugger and allowed me to compile with MSC 6. I don't know
if it'll work with Pentium. I'd probably just use inline assembler.
is it able to convert the name mangling?
"Nathaniel L. Walker" <NatLWalker@no_email.org> schrieb im Newsbeitrag
news:cu**********@cognac.ucs.louisiana.edu... Borland ships tools to convert from COFF to OMF with their compiler.
yes, but they work just on libs which do not contain real code (just
function call specifications)... but this is realy offtopic now ;-) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kenneth Gomez |
last post by:
Hello,
I have tried many avenues (web search, borland website, libxml
website) before deciding to post here.
I'm trying to install libxml2 on windows ME to work with my Borland
C++ 5 Compiler...
|
by: MikeS |
last post by:
im currently developing an app using borland c++ which uses the
fastnet component . but i am having problems with computers behind a
network that dont have a direct ip address to conect to the...
|
by: Ziggi |
last post by:
Hi. I want to get a C++ IDE, but I dont know whether to go for Bill Gate's
solution or Borland's. Could any kind folks detail the relative strength
and weaknesses of both, and also tell me which...
|
by: Chris |
last post by:
I am just beginning programming again and need a bit of advice.
I have both Visual C++ 6.0 Standard Edition and Borland C++ Builder 6.
Of these two which do you consider the best for programming...
|
by: Serge Skorokhodov (216716244) |
last post by:
Hi,
I encounter a strange behavior of BCB 5.6. The example:
#include <stdexcept>
#include <memory>
using namespace std;
class A
|
by: Colin Finck |
last post by:
Hello!
I need to backup a MySQL database (MySQL 4.0). But it is on a
shared-hosting web server and so I don't have direct server access. I
also have no phpMyAdmin installed.
How can I backup the...
|
by: Massimo Mannelli |
last post by:
I know it is a 10 years old question, but I need to know if there are
some issues, procedures, websites, people that have already done the
porting from a borland 4.0 to the Microsoft Visual...
|
by: darrensjunkaccount |
last post by:
Hi,
I have just inherited some embedded software that was compiled with
Borland 4.52. I need to either purchase that compiler, which Borland
no longer appear to sell or alternatively source an...
|
by: Rahul B |
last post by:
Hi,
I am having the following issues while trying to restrict the current
user from creating any objects.
Below is the privileges for the user and response when i try to create
a table in that...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
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...
| |