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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a3cdcbea47c1d198 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-02 01:01:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.27.83.146!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: Accessing a register with a larger size from generic Date: Tue, 2 Oct 2001 08:01:36 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1002009696 13547 217.17.192.37 (2 Oct 2001 08:01:36 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Tue, 2 Oct 2001 08:01:36 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:13605 Date: 2001-10-02T08:01:36+00:00 List-Id: * David C. Hoos wrote: >From: "Lutz Donnerhacke" >> type call_code is (KILL, FORK, EXIT, ...); [...] >> Asm ("int $0x80", >> Outputs => long'Asm_Output ("=a", res), >Could it be that you need to use a 'Size clause on >the call_code type so as to make it 32 bits instead of 8 bits? > >The friendly compiler probably thinks it's helping you by >making your enumeration type 8 bits wide (assuming there are >less than 256 enumerates). Exactly. But setting the size of an arbitary input type for a possible Asm use, causes major problems when constructing predefined composite types of those types.