答复: 答复: 答复: [COMMIT] romcc 0.63 and some fixes...

YhLu YhLu at tyan.com
Wed Jun 2 23:20:00 CEST 2004


Eric,
I add in console.c
static void printo_debug(const char *str) __attribute__((noinline))
{
	print_debug(str);
}

About only chang print_debug in auto.c 

It said
./romcc -O2 -mcpu=k8 -o auto.inc --label-prefix=auto ./auto.E
make[1]: *** [auto.inc] Segmentation fault

./romcc -O -mcpu=k8 -o auto.inc --label-prefix=auto ./auto.E
make[1]: *** [auto.inc] Segmentation fault

regards

YH

-----邮件原件-----
发件人: ebiederman at lnxi.com [mailto:ebiederman at lnxi.com] 
发送时间: 2004年5月28日 11:42
收件人: YhLu
抄送: LinuxBIOS
主题: Re: 答复: 答复: [COMMIT] romcc 0.63 and some fixes...

YhLu <YhLu at tyan.com> writes:

> After I get USB boot done, I will try that and modify the auto.c.....

Ok.  

A quick update.

In playing around I wrote the function:

static void printo_debug(const char *str) __attribute__((noinline))
{
	print_debug(str);
}

And started replacing the calls to print_debug one by one.
On the port I am currently working on I managed to shave off 4K
pretty quickly.

So it looks like for the really commonly called functions we
will need 2 names.  One inline that will be inlined the other that won't.

It is not a very elegant solution but it works and is not very hard to
manage.

Eric



More information about the coreboot mailing list