How to compile a variable argument function like printf?

View: New views
2 Messages — Rating Filter:   Alert me  

How to compile a variable argument function like printf?

by Moligaloo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When compile a function, we should using jit_prolog(n) to denote the number of the arguments, while n is a deterministic number, if we want to compile a function with variable arguments, what should we do?
 



领海5月即将开盘!100-140㎡阔水舒宅,海湾印象
_______________________________________________
Lightning mailing list
Lightning@...
http://lists.gnu.org/mailman/listinfo/lightning

Re: How to compile a variable argument function like printf?

by Basile Starynkevitch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Moligaloo wrote:
> When compile a function, we should using jit_prolog(n) to denote the
> number of the arguments, while n is a deterministic number, if we want
> to compile a function with variable arguments, what should we do?

This is not possible with (and quite hard to add to) GNU lightning.



--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***


_______________________________________________
Lightning mailing list
Lightning@...
http://lists.gnu.org/mailman/listinfo/lightning
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***