From: Simon Wright <simon@pushface.org>
Subject: Re: Mixing Ada code with similar licenses
Date: Mon, 27 Mar 2017 08:07:50 +0100
Date: 2017-03-27T08:07:50+01:00 [thread overview]
Message-ID: <lya887ci49.fsf@pushface.org> (raw)
In-Reply-To: ob9bc5$mjn$1@dont-email.me
"Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org> writes:
> The 2 BSS_Clear algorithms might implement the same algorithm, but
> they do it differently, so the GPL on one doesn't affect the other. If
> you can do
>
> procedure BSS_Clear is
> N : constant Natural := ...; -- Based on start and end addresses
>
> type List is array (1 .. N) of Integer'Address;
>
> A : List;
> for A'Address use To_Address (BSS_Start);
> pragma Import (Ada, A);
> begin -- BSS_Clear
> A := List'(A'range => 0);
> end BSS_Clear;
>
> then that's a 3rd implementation that makes the looping implicit.
And (it turns out) probably translates to a call to memset()! a yet
deeper level of implicitness.
prev parent reply other threads:[~2017-03-27 7:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <ce508a3d-bd0f-4ecc-953e-5b624c072b3c@googlegroups.com>
[not found] ` <o9ur48$p6c$1@dont-email.me>
[not found] ` <f1f579b9-54b9-4949-941a-9b10821892b5@googlegroups.com>
2017-03-11 9:05 ` Mixing Ada code with similar licenses Dirk Heinrichs
[not found] ` <lyk27wdeku.fsf@pushface.org>
2017-03-26 20:46 ` Jere
2017-03-26 21:12 ` Simon Wright
[not found] ` <o9v343$pf5$1@dont-email.me>
[not found] ` <86633a07-9a12-4419-ad09-b519e4f279a5@googlegroups.com>
[not found] ` <o9ve6p$2pq$1@dont-email.me>
2017-03-26 20:57 ` Jere
2017-03-26 21:24 ` Jeffrey R. Carter
2017-03-27 7:07 ` Simon Wright [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