"Adam Beneschan" wrote in message news:1288794.275.1334249936588.JavaMail.geo-discussion-forums@ynlp2... On Thursday, April 12, 2012 3:08:28 AM UTC-7, Markus Sch�pflin wrote: ... >> So the note from the Ada RM does not seem to be followed by GNAT > >I don't think GNAT has a choice whether to follow it or not, since GNAT >can't be expected > to know what the code of the imported C subprogram is going to look like. > All it can do is > obey what the user tells it to do. Right. If the calling convention is different for normal C subprograms and vararg ones, then clearly there needs to be a different convention name for varargs. (As I noted, I've never worked on such a machine, but it doesn't surprise me that much that they exist.) Probably the RM ought to suggest such a convention name as Implementation Advice (something like C_Varargs) in order to increase portability. Someone ought to submit a suggestion to Ada-Comment so that it gets on the ARG's radar/agenda. Randy.