comp.lang.ada
 help / color / mirror / Atom feed
From: Jos De Laender <De_Laender-De_Winter@village.uunet.be>
Subject: Re: Newbie question : types , representation
Date: 1999/08/24
Date: 1999-08-24T00:00:00+00:00	[thread overview]
Message-ID: <37C2E8BE.40461448@village.uunet.be> (raw)
In-Reply-To: 37c2d548@news1.us.ibm.net

Matthew Heaney wrote:
> 
> In article <7ptsgn$nvp$1@nnrp1.deja.com> , jdla@my-deja.com  wrote:
> 
> > But I didn't see however too much of practical answers how to do, in a ADA way
> > and without spoiling to much processor cycles in converting hence and back.
> 
> What makes you think that the "Ada way" is more expensive wrt processor
> cycles?  How do you know that Ada isn't faster than C?

I didn't claim that ! I'm not starting one of those stupid 'this
language is better wars'. I'm just asking how I can express the problem
equally elegant/fast in ADA.

What I do know that in C, I can do all of my operations (shifting,
anding ..) on chars.
It's ugly in the sense that I'm mixing really semantics of chars and
bytes and integers and whatever. But on compiler output I can expect a
fairly optimal implementation.

In ADA , I think (but this was part of the question) , I have to go
through some tables and through some conversion functions. Although it
is not necessarily so , there is at least the increased risk of less
optimal implementation, because the compiler has to find out those
things. I didn't say this is not possible, I asked how one could write
it without having this risk.

Best regards,

Jos De Laender




  reply	other threads:[~1999-08-24  0:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-22  0:00 Newbie question : types , representation Jos De Laender
1999-08-22  0:00 ` Robert Dewar
1999-08-23  0:00   ` Wolfgang Jeltsch
1999-08-24  0:00     ` tmoran
1999-08-24  0:00   ` jdla
1999-08-24  0:00     ` Matthew Heaney
1999-08-24  0:00       ` Jos De Laender [this message]
1999-08-24  0:00         ` Brian Rogoff
1999-08-25  0:00           ` Jos De Laender
1999-08-22  0:00 ` Martin Dowie
1999-08-22  0:00 ` Wilhelm Spickermann
1999-08-23  0:00   ` Simon Wright
1999-08-23  0:00   ` Martin C. Carlisle
     [not found] ` <37C621F3.C6C0DC3A@acenet.com.au>
1999-08-27  0:00   ` David C. Hoos, Sr.
1999-08-27  0:00   ` tmoran
1999-08-27  0:00     ` Florian Weimer
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox