Thread: [Sablevm-developer] set the CFLAGS and inlined does not work...
Brought to you by:
egagnon
From: David <db...@cs...> - 2004-04-05 18:31:32
|
Hi, If the CFLAGS env variable is set (even to an empty string) when SableVM is built, the inlined interpreter will crash quite early. Both on x86 and ppc with several compiler versions... I looked quickly and not having the CFLAGS set, the compiler receives: -g -O2 in addition to SableVM specified CFLAGS in ./configure. Setting the CFLAGS env var to "-g -O2" or only "-O2" works. So, maybe we could specify -O2 explicitly in configure.ac and/or warn the user if he/she specifies his/her own CFLAGS. Any comments? David --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |
From: Etienne G. <gag...@uq...> - 2004-04-05 18:59:28
|
I think there exists some AM_CFLAGS that we should be using. Any devote soul willing to dig through the automake/conf docs to find out? Etienne David B=E9langer wrote: > Hi, >=20 > If the CFLAGS env variable is set (even to an empty string) when SableV= M > is built, the inlined interpreter will crash quite early. Both on x86 > and ppc with several compiler versions... >=20 > I looked quickly and not having the CFLAGS set, the compiler receives: > -g -O2 > in addition to SableVM specified CFLAGS in ./configure. >=20 > Setting the CFLAGS env var to "-g -O2" or only "-O2" works. >=20 > So, maybe we could specify -O2 explicitly in configure.ac and/or warn t= he > user if he/she specifies his/her own CFLAGS. >=20 > Any comments? >=20 > David >=20 > --- >=20 > David B=E9langer > Graduate Student > School of Computer Science > McGill University > Office: MC226 >=20 > Web page: http://www.cs.mcgill.ca/~dbelan2/ > Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dclick > _______________________________________________ > Sablevm-developer mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-developer >=20 > . >=20 --=20 Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |
From: David <db...@cs...> - 2004-04-09 02:55:06
|
Hi, =46rom my understanding the AM_CFLAGS would be used by the Makefile.am writer to specify additional flags in Makefile.am instead of using CFLAGS that is set by the build system. http://sources.redhat.com/automake/automake.html#User%20Variables The -O2 comes from the: AC_PROG_CC macro. If it detects that the C compiler is gcc, it will set "-O2" if no CFLAGS is set. Additionnally, it will set -g if gcc supports it on that platform. One option could be to add: + if test "$with_threading" =3D "inlined"; then + CFLAGS=3D"$CFLAGS -O2" + fi + in the configure.ac in the section with gcc specific options. The SableVM hacker will not be ?!?? if he sets additional compiled options via CFLAGS that should not affect the inlined. What do you think? David On Mon, Apr 05, 2004 at 02:45:05PM -0400, Etienne Gagnon wrote: > I think there exists some AM_CFLAGS that we should be using. Any devote > soul willing to dig through the automake/conf docs to find out? >=20 > Etienne >=20 >=20 >=20 > David B=E9langer wrote: > >Hi, > > > >If the CFLAGS env variable is set (even to an empty string) when SableVM > >is built, the inlined interpreter will crash quite early. Both on x86 > >and ppc with several compiler versions... > > > >I looked quickly and not having the CFLAGS set, the compiler receives: > >-g -O2 > >in addition to SableVM specified CFLAGS in ./configure. > > > >Setting the CFLAGS env var to "-g -O2" or only "-O2" works. > > > >So, maybe we could specify -O2 explicitly in configure.ac and/or warn the > >user if he/she specifies his/her own CFLAGS. > > > >Any comments? > > > >David > > > >--- > > > >David B=E9langer > >Graduate Student > >School of Computer Science > >McGill University > >Office: MC226 > > > >Web page: http://www.cs.mcgill.ca/~dbelan2/ > >Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by: IBM Linux Tutorials > >Free Linux tutorial presented by Daniel Robbins, President and CEO of > >GenToo technologies. Learn everything from fundamentals to system > >administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dclick > >_______________________________________________ > >Sablevm-developer mailing list > >Sab...@li... > >https://lists.sourceforge.net/lists/listinfo/sablevm-developer > > > >. > > >=20 >=20 > --=20 > Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ > SableVM: http://www.sablevm.org/ > SableCC: http://www.sablecc.org/ >=20 --=20 --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |