comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Length-Limited Huffman Coding
Date: Thu, 11 Feb 2016 16:08:55 -0600
Date: 2016-02-11T16:08:55-06:00	[thread overview]
Message-ID: <n9j0po$rkk$1@loke.gir.dk> (raw)
In-Reply-To: n9ikpb$ma8$1@loke.gir.dk

"Tero Koskinen" <tero.koskinen@iki.fi> wrote in message 
news:n9ikpb$ma8$1@loke.gir.dk...
> 11.2.2016, 11.48, gautier_niouzes@hotmail.com wrote:
...
> I am not Randy, but I tested the code with Janus/Ada 3.1.2c
> (on Windows 10) and it compiled and ran fine:

Thanks. Of course, the MS-DOS Ada 83 compiler, with the 640K memory limit 
and weaker representation clause support, might be a different story.

...
> Although, Janus/Ada gave one warning:
> In File C:\Work\gautier\llhc\LENGTH_LIMITED_HUFFMAN_CODE_LENGTHS.ADB at 
> line 54
> --------------
>    53:    type Index_pair is array(Index_type'(0)..1) of Index_type;
>    54:    lists: array(0..Index_type(max_bits-1)) of Index_pair;
> -----------------------------------------------------^
> *WARNING* This component has a non-simple type (6.5.2)

That just means that the implementation of that type is likely to be 
expensive. It should work (as it does), but if you have a performance 
concern you, one might want to try to get rid of the warning. I presume this 
is in a generic unit, though, so that's probably impossible. (This is one of 
the warnings that I'm contemplating moving to a new category of 
"informations", which could then be turned on/off separately; leaving 
warnings for things that a programmer really ought to consider changing.)

                         Randy.



      reply	other threads:[~2016-02-11 22:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-06 20:57 Length-Limited Huffman Coding gautier_niouzes
2016-02-08 21:20 ` gautier_niouzes
2016-02-10 11:29   ` gautier_niouzes
2016-02-11  1:59     ` Randy Brukardt
2016-02-11  9:48       ` gautier_niouzes
2016-02-11 18:44         ` Tero Koskinen
2016-02-11 22:08           ` Randy Brukardt [this message]
replies disabled

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