[kaffe] Re: inlining sysdepCallMethod for m68k-linux

Kiyo Inaba inaba at src.ricoh.co.jp
Thu Apr 22 05:19:02 PDT 2004

Hi all,

I made small test program for inline with alloca (list at the bottom),
and try to compile it on several platforms including sparc, i686 etc,
but all warn 'function using alloca cannot be inline'.

So I propose to make sysdepCallMethod for m68k back with macro version.


<<< My compile script >>>
gcc -W -Wall -Winline -S test.c -O

<<< test program >>>
#include <stdio.h>

static inline int testinline(n)
        int dynarray[n];
        int i;

        for (i=0; i<n; i++)
                dynarray[i] = i + 1;

        return (dynarray[n-1]);

        int i;

        i = testinline(5);
        printf("i = %d\n", i);

More information about the kaffe mailing list