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

Re: [f-cpu] calling conventions



On Fri, 7 Jun 2002 01:05:19 +0200, Christophe wrote:
>> Ok but because it is not a hardware issue but just a language
>>issue (c,
>pascal,
>> list and forth don't use the same convention), the need to fix
>>exactly
>r48-r63
>> as global registers is not justified. just take the number you
>>need according
>> the language and free the others as local registers meseems more
>>judicious
>> rather than excluding a range, a small part of which would be used.
>
>Ah yes... I forget, maybe you wanted to be able to link several
>functions
>between Forth, Lisp, Pascal, C, C++, and so on ? i'm quite sceptical
>but why
>not...
>

I'm sorry but I do this every day between C, C++, Pascal and Asm. And all
work ok because I use common calling convention (cdecl in most case).

--
Thomas Lavergne                       "Le vrai rÍveur est celui qui rÍve
                                       de l'impossible."  (Elsa Triolet)
thomas.lavergne@laposte.net                                      
d-12@laposte.net    ICQ:#137121910     http://assoc.wanadoo.fr/thallium/


*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/