From: Yamauchi H. <hi...@mp...> - 2005-04-23 21:21:46
|
Hi, I add some mode (runmode) to tmk to switch building 32 bit and 64 bit executables on some environments (Opteron, AMD 64 bit CPU with 64bit kernel). The implementation is just adding a global associative array to tmk, and tmk runs under some mode according to this variable. Currently we are testing this new feature, but at least the `default' mode must work the same as before. If you want to try this mode, please update your tmk (after backup) from cvs. % tmk ... This should not change anything. % tmk -setrunmode gccexename=gcc-3.4 ... use gcc-3.4 version if it exists on your path instead of gcc. add gccversion to ARCH in this mode like Debian3.1_gcc3.4/ to avoid conflicts of default gcc objects. % tmk -setrunmode addressmode=64bit ... Try to build 64 bit executable, but you need your config file since you need 64 bit library pathes for your program, 64bit gcc, ld, and so on. An example of config file is config/site/mpi-sb.mpg.de_confdir/linux.debian3.1-opteron-64bit.config . The option is a bit long, so you can put them to colon separated environment variable. export TMK_RUNMODE="addressmode=64bit" for sh. Best Regards --------------------------------------------------------------------- Yamauchi, Hitoshi : Max-Planck-Institut fuer Informatik AG4 --E-mail-- yam...@mp... /_________/ http://www.mpi-sb.mpg.de/~hitoshi/ |