tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Bug in windows-style fastcall


From: PerfectDark
Subject: Re: [Tinycc-devel] Bug in windows-style fastcall
Date: Sat, 1 Oct 2005 17:44:14 +0400 (MSD)

I am very sorry.

need to try:

//----------------------------------
// begin
#include <stdio.h>

int __attribute((__fastcall)) fn(int a, long double b/*should not placed in 
register*/)
{ return a+b;};

main()
{
printf("%i", fn(1, 2.0));
}
// end
//----------------------------------




>Windows-style fastcall imho implemented with error.
>Try to compile and execute following code with tcc:
>
>> cat fast.c
>
>//----------------------------------
>// begin
>#include <stdio.h>
>
>int __fastcall fn(int a, long double b/*should not placed in register*/)
>{ return a+b;);
>
>main()
>{
>printf("%i", fn(1, 2.0));
>}
>// end
>//----------------------------------
>
>Maybe even though I patched tcc incorrectly?
>
>
>_______________________________________________
>Tinycc-devel mailing list
>address@hidden
>http://lists.nongnu.org/mailman/listinfo/tinycc-devel


-- 
Сегодня удачный день, чтобы завести почту на Яндексе http://mail.yandex.ru




reply via email to

[Prev in Thread] Current Thread [Next in Thread]