On Mon, Sep 21, 2009 at 01:14:33PM -0700, Benjamin Ylvisaker wrote:
> First, can anyone confirm  my hypothesis that the number that comes out of
> that transformation  depends on the kind of machine that Cil was built on
> (as opposed to  the kind of machine it's running on)?  Is it "configure" or
> "make"  that sets that?

Yes, it is set by configure.

> My thought about how to address this problem is to make different
> subdirectories of obj, and have the experiment scripts select the
> appropriate compiler based on which machine Condor puts that job on.   On
> both kinds of machines, it seems that the binaries go in x86_LINUX  right
> now.  Does that sound like the right way to go?

No.  The right way to go is to use the CIL_MACHINE variable environment.  Look
for it in the CIL documentation and read src/machdepenv.ml.

You will have to compile and run the C code to get the right value of
CIL_MACHINE for every architecture you use.  Then, just use it as you need
(but beware, do not forget the --envmachine flag!).

Regards,
-- 
Gabriel Kerneis

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to