From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada++ Date: Fri, 29 May 2020 09:22:23 +0200 Organization: Adalog Message-ID: References: <50711230-5b14-4278-b9d8-d197bbe3c93b@googlegroups.com> <9320040f-5486-4d1e-847d-f81b0a59fcfa@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 29 May 2020 07:22:24 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="8385e9eebcf488b30f9aa070996c42ee"; logging-data="6521"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BDXMAQ6cM9X5JNufp6f/N" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cancel-Lock: sha1:mmNbRanUgq4u2woo19BL/7mskfU= In-Reply-To: Content-Language: fr Xref: reader01.eternal-september.org comp.lang.ada:58846 Date: 2020-05-29T09:22:23+02:00 List-Id: Le 29/05/2020 à 08:56, Dmitry A. Kazakov a écrit : > What is indeed needed is static expressions allowing creation of static > objects in order to reduce program startup time, e.g. a text buffer > containing pre-rendered at compile time text or a static map of texts or > an embedded picture etc. Presently all this requires a tool that would > generate Ada code with static arrays of Storage_Element and lots of "for > X'Address use Y." I had that need for a Tash program, where I wanted the TCL program to be embedded as strings in the Ada code. I wrote a small utility to keep the Tcl separated, and include it in the Ada code automatically. It's a bit more sophisticated than that, has some options, etc. All in all, it's a single Ada procedure of 290 lines (comments included). Really no big deal... For those who may be interested: https://www.adalog.fr/en/components.html#Tcl2ada -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr