From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: Variable arguments magic in Ada to C code
Date: Wed, 14 Aug 2002 11:34:21 +0000 (UTC)
Date: 2002-08-14T11:34:21+00:00 [thread overview]
Message-ID: <slrnalkg1q.oj.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: 87wuqt7o9r.fsf@deneb.enyo.de
* Florian Weimer wrote:
>lutz@iks-jena.de (Lutz Donnerhacke) writes:
>> * Andreas Almroth wrote:
>>>The first argument passed works just fine, but the rest are not interpreted
>>>very well by the C code. An 32/64 bits issue?
>>
>> No, but I do not understand the problem:
>> ARM B.3 says in Note (12):
>> A C function that takes a variable number of arguments can correspond to
>> several Ada subprograms, taking various specific numbers and types of
>> parameters.
>
>The calling convention of a C function which expects a variable number
>of arguements can differ considerably from one which does not.
This would cause major problems when compiling legal C code without advanced
prototypes for such function.
>Your example is not portable.
What is the portable (right(TM)) solution?
next prev parent reply other threads:[~2002-08-14 11:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-05 23:47 Variable arguments magic in Ada to C code Andreas Almroth
[not found] ` <slrnakv5v0.p2.lutz@taranis.iks-jena.de>
[not found] ` <87ptww7yj6.fsf@almroth.com>
[not found] ` <slrnal1l8s.pj.lutz@taranis.iks-jena.de>
[not found] ` <dstanbro-CDC252.20502007082002@news-server.bigpond.net.au>
2002-08-14 9:05 ` Lutz Donnerhacke
[not found] ` <87vg6nj8jd.fsf@almroth.com>
2002-08-16 19:41 ` David Thompson
2002-08-14 10:01 ` Florian Weimer
2002-08-14 11:34 ` Lutz Donnerhacke [this message]
2002-08-14 13:13 ` Dale Stanbrough
2002-08-14 13:59 ` Florian Weimer
2002-08-14 14:02 ` Lutz Donnerhacke
2002-08-15 10:09 ` Florian Weimer
2002-08-18 22:43 ` David Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox