From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: Unifont static compiled and stack size... Date: Mon, 14 Aug 2023 17:59:16 +0200 Organization: A noiseless patient Spider Message-ID: References: <5290b261-c8d8-4f0a-87f5-941d275a1e6dn@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 14 Aug 2023 15:59:16 -0000 (UTC) Injection-Info: dont-email.me; posting-host="13b96440b5c2aea0289fe3b4104f8eda"; logging-data="2374445"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GkF0hyzSuQ7+oVKf7lDwfz4FiUx77xJ8=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cancel-Lock: sha1:aHt4/PfAgCSRucHNmCFh3PrH1bk= Content-Language: en-US In-Reply-To: <5290b261-c8d8-4f0a-87f5-941d275a1e6dn@googlegroups.com> Xref: news.eternal-september.org comp.lang.ada:65523 List-Id: On 2023-08-14 17:10, Micah Waddoups wrote: > > Jeff, you missed a digit - it's five F's 16#FFFFF# because that is as high as Unifont goes in my copy of the hex file. Of course the technique should be able to go higher if that changes, but Unicode is pretty exhaustive as it is and Unifont is meant to keep up with every version and addition to the Unicode code points, so I sincerely hope for no trouble for a while yet. I checked, and it seem my system has about 8 megabytes as the stack size limit, so with the ranges left empty it is not 32 megabytes, but still pretty big. Good looking code, by the way. Very easy to read. Mine is appended, but it was really a quick hack of a job with too little sleep. I probably should have done a Z Shell script (maybe take 20 seconds?), but I thought the two second efficiency of writing a compiled composer was worth it ...somehow... You're right. Sorry for misreading that. But increasing Code_Point to include 16#F_FFFF# still works for me. Unicode defines code points up to 16#10_FFFF#, but perhaps those over 16#F_FFFF# are unused. Increasing Code_Point to include 16#10_FFFF# still works for me. That's 34 MB. It won't fit on the stack, but luckily library-level constants aren't allocated on the stack. -- Jeff Carter "I wave my private parts at your aunties." Monty Python & the Holy Grail 13