[kaffe] Kaffe & -fomit-frame-pointer

Gwenole Beauchesne gbeauchesne@mandrakesoft.com
Fri, 16 Aug 2002 12:47:50 +0200


Hi,

> Regarding frame pointer:
> Edouard's porting kaffe document says:
>  Some platforms need to setup Frame-Pointer register
> when creating a new thread stack. In this case you
> must provide his offset FP_OFFSET into jmp_env.

Nice, thanks. It works now without "de-optimizing". ;-)

> Regarding classpath:
> Would adding "." to the classpath in respective makefiles help?

The following appears to be OK.

If CLASSPATH doesn't exist, we'll get CLASSPATH=:.:$(top_srcdir)/...
If this is a problem, we could leave the current ${CLASSPATH-.} as is 
and forcibly add an extra "." to it.

That's just a fix to make check'ing if CLASSPATH is set and doesn't 
have "." in it.

--- Makefile.am.CLASSPATH-dot	2002-06-02 18:18:52.000000000 +0200
+++ Makefile.am	2002-08-16 12:32:59.000000000 +0200
@@ -94,7 +94,7 @@
  		"DEBUG_ENV=$(DEBUG_ENV)" BUILD_ENVIRONMENT-make

  BUILD_ENVIRONMENT-make: Makefile
-	echo 
CLASSPATH=\$${CLASSPATH-.}\''$(PATHSEP)'\'$(top_srcdir)/libraries/javalib/
Klasses.jar\''$(PATHSEP)'\'$(top_srcdir)/libraries/javalib/kjc.jar\; 
export CLASSPATH | sed 's,/,$(DIRSEP),g;s,\\,\\\\,g' > 
BUILD_ENVIRONMENT.new; \
+	echo 
CLASSPATH=\$${CLASSPATH}\''$(PATHSEP)'\'.\''$(PATHSEP)'\'$(top_srcdir)/libraries/
javalib/Klasses.jar\''$(PATHSEP)'\'$(top_srcdir)/libraries/javalib/kjc.jar\
; export CLASSPATH | sed 's,/,$(DIRSEP),g;s,\\,\\\\,g' > 
BUILD_ENVIRONMENT.new; \
  	echo 
KAFFELIBRARYPATH=\$${KAFFELIBRARYPATH+\"\$$KAFFELIBRARYPATH\"\''$
(PATHSEP)'\'}`for f in $(JAVA_LIBS); do echo "$$f" | sed 's%/[^/]*$$%%'; 
done | (tr '\012' ' '; echo) | sed -e 's/ $$//' -e "s/ 
/\'$(PATHSEP)\'/g"`\; export KAFFELIBRARYPATH >> BUILD_ENVIRONMENT.new; \
  	echo JAVA=$(top_builddir)/kaffe/kaffe/kaffe-bin$(EXEEXT)\; export 
JAVA >> BUILD_ENVIRONMENT.new
  	rm -f BUILD_ENVIRONMENT


Bye,
Gwenole.