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=-0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a37:8647:0:b0:76a:f46f:a04f with SMTP id i68-20020a378647000000b0076af46fa04fmr76238qkd.6.1691943388778; Sun, 13 Aug 2023 09:16:28 -0700 (PDT) X-Received: by 2002:a05:6a00:16d0:b0:687:26bc:6377 with SMTP id l16-20020a056a0016d000b0068726bc6377mr2505275pfc.3.1691943388129; Sun, 13 Aug 2023 09:16:28 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 13 Aug 2023 09:16:27 -0700 (PDT) Injection-Info: google-groups.googlegroups.com; posting-host=65.130.210.206; posting-account=uAiShQoAAABL1dOXlVllWlQArz9o0jAG NNTP-Posting-Host: 65.130.210.206 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Unifont static compiled and stack size... From: Micah Waddoups Injection-Date: Sun, 13 Aug 2023 16:16:28 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:65510 List-Id: I tried to compile the Unifont hex file, converted with a script into varia= ble Ada code, but it went on forever, gradually blowing up my memory. I us= ed an .ads file and aimed for a static build, but I suspect I would have hi= t the stack size limit for executables if I succeeded My request for insight is: (A) How do you recommend I compile the Unifont into a form that is usable = within my Ada program. (I am thinking compiling C and importing, since C is= so basic it might just work, but even better would be Assembly and I don't= know how to import a large data variable compiled in Assembly or if I can = even compile that much data using Assembly... It should work, but the comp= iler might complain and I still have to figure out the importing part.) (B) Do you think this has a chance of succeeding if I compile the font as a= shared library? That doesn't affect initial stack limits, right? Just to be clear, I am trying to import values 0 .. 16#FFFFF#, way beyond t= he two byte limit that so many libraries are functionally bound by in one b= ottle neck or another. I want to support something similar to 'kmscon', bu= t with some shortcuts since I don't want to redo everything that others hav= e done well. I just want to finish my library to a point of usefulness and= focus on other projects. I felt compelled to create this library because = every other library I looked at was broken in some way and even the most co= mmon font systems fail to support Unicode's full character range, making mu= ch of it useless. I figured I could create the exact effects that I am try= ing to with Unifont both in graphical windows of various OSs, and on the Li= nux terminal if I rewrite enough of the low level code that I don't have to= rely on the less complete existing libraries. Admittedly, I have too litt= le time to work on it, and am so far behind other people wonderful work tha= t I will certainly have many holes and omitted functionality that should ev= entually be added later. My goal is to both make my programming projects p= ossible and free certain features from too restricted licensing.