On 23/11/2007, Adrian Veith <[EMAIL PROTECTED]> wrote:
> Hi,
>
> what is the right calling convention for using system libraries on wince
> for ARM ?
>
> I wrote a pascal wrapper for a system dll and used stdcall for the
> calling convention - and the program worked.
> I changed to cdecl - and the program works as well.
>
> In my opinion the program should have crashed on one of the two.
>

i guess those calling conventions don't exist on arm.  the compiler
probably just ignores them and chooses the default one.  there should
be a warning/note for this, imho.  gcc does do that, iirc.

(i think arm only has a "normal" and a soft fpu calling convention)

> Now I am puzzled.
>
> Cheers,
>
> Adrian.

henry
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to