comp.lang.ada
 help / color / mirror / Atom feed
From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: Accessing a register with a larger size from generic
Date: Tue, 2 Oct 2001 08:01:36 +0000 (UTC)
Date: 2001-10-02T08:01:36+00:00	[thread overview]
Message-ID: <slrn9rit2v.kf.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: mailman.1001618128.14641.comp.lang.ada@ada.eu.org

* David C. Hoos wrote:
>From: "Lutz Donnerhacke" <lutz@iks-jena.de>
>> 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.



  reply	other threads:[~2001-10-02  8:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-27 18:31 Accessing a register with a larger size from generic Lutz Donnerhacke
2001-09-27 19:16 ` David C. Hoos
2001-10-02  8:01   ` Lutz Donnerhacke [this message]
2001-09-28  8:53 ` Lutz Donnerhacke
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox